mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-22 20:10:16 -04:00
[MasterServer] Remove Duplicate const for escaping
This commit is contained in:
parent
28694c0a1c
commit
2999a9cd70
@ -33,7 +33,6 @@ inline void ptreeToServer(boost::property_tree::ptree &pt, MasterServer::SServer
|
||||
inline std::string escapeString(const std::string &str)
|
||||
{
|
||||
const std::string escapeChars = "\"\\/\b\f\n\r\t";
|
||||
const std::string escapeSequences = "\"\\/\b\f\n\r\t";
|
||||
|
||||
std::stringstream ss;
|
||||
for (char c : str)
|
||||
@ -41,7 +40,7 @@ inline std::string escapeString(const std::string &str)
|
||||
size_t found = escapeChars.find(c);
|
||||
if (found != std::string::npos)
|
||||
{
|
||||
ss << '\\' << escapeSequences[found];
|
||||
ss << '\\' << escapeChars[found];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user