summaryrefslogtreecommitdiffstats
path: root/src/displaycertdialog.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2018-12-16 05:16:48 +0100
committerSlávek Banko <[email protected]>2018-12-16 05:16:48 +0100
commite543ebc9363bb746a042577f314240af305e07b5 (patch)
tree2589d87e7be1f45e05fc7c87d65292701dedf0f6 /src/displaycertdialog.cpp
parent9bd6d8c4329b3e35b9daabd76c3d481d9fbcba93 (diff)
downloadkvpnc-e543ebc9363bb746a042577f314240af305e07b5.tar.gz
kvpnc-e543ebc9363bb746a042577f314240af305e07b5.zip
Added controlled conversions to char* instead of automatic ascii conversions.
The definition of -UTQT_NO_ASCII_CAST is no longer needed. Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'src/displaycertdialog.cpp')
-rw-r--r--src/displaycertdialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/displaycertdialog.cpp b/src/displaycertdialog.cpp
index 57e06c5..d1eefd8 100644
--- a/src/displaycertdialog.cpp
+++ b/src/displaycertdialog.cpp
@@ -23,8 +23,8 @@
#include <tqstringlist.h>
#include <iostream>
-DisplayCertDialog::DisplayCertDialog(TQWidget *parent, const char* caption, KVpncConfig *GlobalConfig)
- : KDialogBase ( parent, i18n ( "Certificate data" ).ascii(), true, caption,
+DisplayCertDialog::DisplayCertDialog(TQWidget *parent, const TQString& caption, KVpncConfig *GlobalConfig)
+ : KDialogBase ( parent, i18n ( "Certificate data" ).utf8(), true, caption,
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true )
{
main = new DisplayCertDialogBase ( this );
@@ -41,7 +41,7 @@ DisplayCertDialog::~DisplayCertDialog()
void DisplayCertDialog::parseCertData()
{
- std::cout << "certdatalist" << CertDataList.join (" ") << std::endl;
+ std::cout << "certdatalist" << CertDataList.join (" ").local8Bit() << std::endl;
for ( TQStringList::Iterator it = CertDataList.begin(); it != CertDataList.end(); ++it ) {
if (GlobalConfig->KvpncDebugLevel > 2)
GlobalConfig->appendLogEntry("[cert data]: "+*it,GlobalConfig->debug);