summaryrefslogtreecommitdiff
path: root/src/common/Utilities/Util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/Utilities/Util.cpp')
-rw-r--r--src/common/Utilities/Util.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/common/Utilities/Util.cpp b/src/common/Utilities/Util.cpp
index 5628323251..8ae33a8175 100644
--- a/src/common/Utilities/Util.cpp
+++ b/src/common/Utilities/Util.cpp
@@ -8,7 +8,6 @@
#include "Common.h"
#include "Containers.h"
#include "IpAddress.h"
-#include "StringConvert.h"
#include "StringFormat.h"
#include <algorithm>
#include <cctype>
@@ -17,9 +16,6 @@
#include <iomanip>
#include <sstream>
#include <string>
-#include <cctype>
-#include <cstdarg>
-#include <ctime>
#include <utf8.h>
Tokenizer::Tokenizer(const std::string& src, const char sep, uint32 vectorReserve)
@@ -518,7 +514,7 @@ std::wstring GetMainPartOfName(std::wstring const& wname, uint32 declension)
{
std::wstring const& ending = **itr;
std::size_t const endLen = ending.length();
- if (!(endLen <= thisLen))
+ if (endLen > thisLen)
{
continue;
}