mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2026-01-02 10:33:20 +00:00
Merge pull request #7 from HotaruBlaze/MasterServer-Cleanup
[MasterServer] Remove Duplicate const for escapeString
This commit is contained in:
commit
4763a46364
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Reference in a new issue