summaryrefslogtreecommitdiff
path: root/src/server/shared/Common.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/shared/Common.cpp')
-rw-r--r--src/server/shared/Common.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/shared/Common.cpp b/src/server/shared/Common.cpp
index 670035304b..ae40b23700 100644
--- a/src/server/shared/Common.cpp
+++ b/src/server/shared/Common.cpp
@@ -41,9 +41,9 @@ LocaleConstant GetLocaleByName(const std::string& name)
void CleanStringForMysqlQuery(std::string& str)
{
- std::string::size_type n = 0;
- while ((n=str.find('\\')) != str.npos) str.erase(n,1);
- while ((n=str.find('"')) != str.npos) str.erase(n,1);
- while ((n=str.find('\'')) != str.npos) str.erase(n,1);
+ std::string::size_type n = 0;
+ while ((n=str.find('\\')) != str.npos) str.erase(n,1);
+ while ((n=str.find('"')) != str.npos) str.erase(n,1);
+ while ((n=str.find('\'')) != str.npos) str.erase(n,1);
}