diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-21 23:11:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-21 23:22:06 +0300 |
commit | 67d5177ef4f5d54ea8edc5403ed20f9ade56e8bf (patch) | |
tree | 0efb80c3cf13e5f859c522da923cf7fddac90bc5 /src/chatlogger.cpp | |
parent | 73f36dd1934b3d0cdd52f13cab15480de4d0b9d2 (diff) | |
download | manaverse-67d5177ef4f5d54ea8edc5403ed20f9ade56e8bf.tar.gz manaverse-67d5177ef4f5d54ea8edc5403ed20f9ade56e8bf.tar.bz2 manaverse-67d5177ef4f5d54ea8edc5403ed20f9ade56e8bf.tar.xz manaverse-67d5177ef4f5d54ea8edc5403ed20f9ade56e8bf.zip |
fix code style and some other fixes after auto checks.
Diffstat (limited to 'src/chatlogger.cpp')
-rw-r--r-- | src/chatlogger.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chatlogger.cpp b/src/chatlogger.cpp index c09249f12..0343a7190 100644 --- a/src/chatlogger.cpp +++ b/src/chatlogger.cpp @@ -138,7 +138,8 @@ std::string ChatLogger::getDir() const std::string ChatLogger::secureName(std::string &name) const { - for (unsigned int f = 0, sz = name.length(); f < sz; f ++) + const unsigned int sz = name.length(); + for (unsigned int f = 0; f < sz; f ++) { const unsigned char ch = name[f]; if ((ch < '0' || ch > '9') |