diff --git a/r5dev/launcher/launcher.cpp b/r5dev/launcher/launcher.cpp index 606f6cab..bc6d20ec 100644 --- a/r5dev/launcher/launcher.cpp +++ b/r5dev/launcher/launcher.cpp @@ -129,14 +129,14 @@ void ParseAndApplyConfigFile(const string& svConfig) { while (std::getline(ss, svInput, '\n')) { - size_t nPos = svInput.find(" "); + string::size_type nPos = svInput.find(' '); if (!svInput.empty() && nPos > 0 && nPos < svInput.size() && nPos != svInput.size()) { string svValue = svInput.substr(nPos + 1); - string svArgument = svInput.erase(svInput.find(" ")); + string svArgument = svInput.erase(svInput.find(' ')); CommandLine()->AppendParm(svArgument.c_str(), svValue.c_str()); } diff --git a/r5dev/netconsole/netconsole.cpp b/r5dev/netconsole/netconsole.cpp index cb0a8fa5..9ff8dc98 100644 --- a/r5dev/netconsole/netconsole.cpp +++ b/r5dev/netconsole/netconsole.cpp @@ -113,7 +113,7 @@ void CNetCon::UserInput(void) this->Disconnect(); return; } - size_t nPos = svInput.find(" "); + string::size_type nPos = svInput.find(' '); if (!svInput.empty() && nPos > 0 && nPos < svInput.size() @@ -147,14 +147,14 @@ void CNetCon::UserInput(void) } else // Setup connection from input. { - size_t nPos = svInput.find(" "); + string::size_type nPos = svInput.find(' '); if (!svInput.empty() && nPos > 0 && nPos < svInput.size() && nPos != svInput.size()) { std::string svInPort = svInput.substr(nPos + 1); - std::string svInAdr = svInput.erase(svInput.find(" ")); + std::string svInAdr = svInput.erase(svInput.find(' ')); if (!this->Connect(svInAdr, svInPort)) {