Fix CppCheck in p3netmgr.cc

/libretroshare/src/pqi/p3netmgr.cc:926: warning:
Cppcheck(unreadVariable): Variable 'title' is assigned a value that is
never used.
/libretroshare/src/pqi/p3netmgr.cc:1808: warning:
Cppcheck(unreadVariable): Variable 'connectstr' is assigned a value that
is never used.
This commit is contained in:
Phenom 2017-07-21 19:02:34 +02:00 committed by csoler
parent 6a0fd1179c
commit d21b41f871

View File

@ -923,8 +923,8 @@ void p3NetMgrIMPL::netExtCheck()
//pqiNotify *notify = getPqiNotify(); //pqiNotify *notify = getPqiNotify();
//if (notify) //if (notify)
{ {
std::string title = //std::string title =
"Warning: Bad Firewall Configuration"; // "Warning: Bad Firewall Configuration";
std::string msg; std::string msg;
msg += " **** WARNING **** \n"; msg += " **** WARNING **** \n";
@ -1814,7 +1814,7 @@ void p3NetMgrIMPL::updateNetStateBox_temporal()
std::cerr << std::endl; std::cerr << std::endl;
std::cerr << "\tNetState: " << netstatestr; std::cerr << "\tNetState: " << netstatestr;
std::cerr << std::endl; std::cerr << std::endl;
std::cerr << "\tConnectModes: " << netstatestr; std::cerr << "\tConnectModes: " << connectstr;
std::cerr << std::endl; std::cerr << std::endl;
std::cerr << "\tNetworkMode: " << netmodestr; std::cerr << "\tNetworkMode: " << netmodestr;
std::cerr << std::endl; std::cerr << std::endl;