summaryrefslogtreecommitdiffstats
path: root/src/importipsecprofiledialog.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-12-16 05:16:48 +0100
committerSlávek Banko <slavek.banko@axis.cz>2018-12-16 05:16:48 +0100
commite543ebc9363bb746a042577f314240af305e07b5 (patch)
tree2589d87e7be1f45e05fc7c87d65292701dedf0f6 /src/importipsecprofiledialog.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 <slavek.banko@axis.cz>
Diffstat (limited to 'src/importipsecprofiledialog.cpp')
-rw-r--r--src/importipsecprofiledialog.cpp10
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);