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/importipsecprofiledialog.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/importipsecprofiledialog.cpp')
-rw-r--r-- | src/importipsecprofiledialog.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/importipsecprofiledialog.cpp b/src/importipsecprofiledialog.cpp index ea9830c..de64f36 100644 --- a/src/importipsecprofiledialog.cpp +++ b/src/importipsecprofiledialog.cpp @@ -562,12 +562,12 @@ void ImportIpsecProfileDialog::canAccept() { validLineFound=true; TQString LeftNextHop=line2.section ( "leftnexthop=",1,-1 ); - std::cout << "left next hop (local) found: " << LeftNextHop << std::endl; + std::cout << "left next hop (local) found: " << LeftNextHop.local8Bit() << std::endl; if (GlobalConfig->KvpncDebugLevel > 2) GlobalConfig->appendLogEntry("import ipsec config: left next hop (local) found: " +LeftNextHop ,GlobalConfig->debug); profiledata->setLeftNextHop(LeftNextHop); profiledata->setUseLeftNextHop(true); - std::cout << " => set it for profile " << IpsecConfigSection << " ." << std::endl; + std::cout << " => set it for profile " << IpsecConfigSection.local8Bit() << " ." << std::endl; if (GlobalConfig->KvpncDebugLevel > 2) GlobalConfig->appendLogEntry("import ipsec config: => set it for profile " + IpsecConfigSection + " ." ,GlobalConfig->debug); } @@ -763,7 +763,7 @@ void ImportIpsecProfileDialog::canAccept() { validLineFound=true; TQString leftsourceip=line2.section ( "leftsourceip=",1,-1 ); - std::cout << "left (local) have to use IP address " << leftsourceip << std::endl; + std::cout << "left (local) have to use IP address " << leftsourceip.local8Bit() << std::endl; if (GlobalConfig->KvpncDebugLevel > 2) GlobalConfig->appendLogEntry("import ipsec config: left (local) have to use IP address " + leftsourceip ,GlobalConfig->debug); profiledata->setLocalVirtualIP(leftsourceip); @@ -775,7 +775,7 @@ void ImportIpsecProfileDialog::canAccept() { validLineFound=true; TQString virtualprivate=line2.section ( "virtual_private=",1,-1 ); - std::cout << "virtual private networks " << virtualprivate << std::endl; + std::cout << "virtual private networks " << virtualprivate.local8Bit() << std::endl; if (GlobalConfig->KvpncDebugLevel > 2) GlobalConfig->appendLogEntry("import ipsec config: virtual private networks " +virtualprivate ,GlobalConfig->debug); profiledata->setLocalVirtualIP(virtualprivate); @@ -788,7 +788,7 @@ void ImportIpsecProfileDialog::canAccept() { validLineFound=true; TQString rightsourceip=line2.section ( "rightsourceip=",1,-1 ); - std::cout << "right (remote) have to use IP address " << rightsourceip << std::endl; + std::cout << "right (remote) have to use IP address " << rightsourceip.local8Bit() << std::endl; if (GlobalConfig->KvpncDebugLevel > 2) GlobalConfig->appendLogEntry("import ipsec config: right (remote) have to use IP address " + rightsourceip ,GlobalConfig->debug); profiledata->setRightSourceIp(rightsourceip); |