diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-12-16 05:16:48 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-12-16 11:28:29 +0100 |
commit | 6284823847949bb94a9974bc49befb14d9513b47 (patch) | |
tree | c0edff6a7f82c84531fdf8ed1b89fe3eab336e56 /src/preferencesdialog.cpp | |
parent | edd94929b6f5cec0621460553c6d5c704cc13691 (diff) | |
download | kvpnc-6284823847949bb94a9974bc49befb14d9513b47.tar.gz kvpnc-6284823847949bb94a9974bc49befb14d9513b47.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 <slavek.banko@axis.cz>
(cherry picked from commit e543ebc9363bb746a042577f314240af305e07b5)
Diffstat (limited to 'src/preferencesdialog.cpp')
-rw-r--r-- | src/preferencesdialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/preferencesdialog.cpp b/src/preferencesdialog.cpp index 137557d..8c2f514 100644 --- a/src/preferencesdialog.cpp +++ b/src/preferencesdialog.cpp @@ -3205,7 +3205,7 @@ void PreferencesDialog::profileChanged( const TQString& itemtext ) for ( TQStringList::Iterator ikeit = IkeList.begin(); ikeit != IkeList.end(); ++ikeit ) { - std::cout << "ike: " << *ikeit << ":" << std::endl; + std::cout << "ike: " << (*ikeit).local8Bit() << ":" << std::endl; if (*ikeit == "aes256-sha1") ProfileIpsecOptionsWidget->IkeAes256Sha1CheckBox->setChecked(true); @@ -3229,7 +3229,7 @@ void PreferencesDialog::profileChanged( const TQString& itemtext ) for ( TQStringList::Iterator espit = EspList.begin(); espit != EspList.end(); ++espit ) { - std::cout << "esp: " << *espit << ":" << std::endl; + std::cout << "esp: " << (*espit).local8Bit() << ":" << std::endl; if (*espit == "3des-md5") ProfileIpsecOptionsWidget->Esp3desMd5CheckBox->setChecked(true); @@ -4923,10 +4923,10 @@ void PreferencesDialog::saveSessionClicked() profile->setIpsecIke(IkeList.join(",")); for ( TQStringList::Iterator ikeit = IkeList.begin(); ikeit != IkeList.end(); ++ikeit ) - std::cout << "ike: " << *ikeit << ":" << std::endl; + std::cout << "ike: " << (*ikeit).local8Bit() << ":" << std::endl; for ( TQStringList::Iterator espit = EspList.begin(); espit != EspList.end(); ++espit ) - std::cout << "esp: " << *espit << ":" << std::endl; + std::cout << "esp: " << (*espit).local8Bit() << ":" << std::endl; if(ProfileIpsecOptionsWidget->UseCustomEspCheckBox->isChecked() && !EspList.isEmpty()) profile->setUseCustomEsp(true); |