From 9e2074d093ecdf9afc95a2fefc24b38307da627d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 20 Jan 2017 20:16:55 +0300 Subject: Move utf8 constant into separate file. --- src/utils/stringutils.cpp | 2 ++ src/utils/stringutils.h | 2 -- src/utils/stringutils_unittest.cc | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/utils') diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index 7671961bc..bb7f7efb5 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -22,6 +22,8 @@ #include "utils/stringutils.h" +#include "const/utils/utf8.h" + #ifndef DYECMD #include "resources/iteminfo.h" diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h index 8053be689..f9d7494aa 100644 --- a/src/utils/stringutils.h +++ b/src/utils/stringutils.h @@ -30,8 +30,6 @@ #include "localconsts.h" -static const size_t UTF8_MAX_SIZE = 10; - /** * Trims spaces off the end and the beginning of the given string. * diff --git a/src/utils/stringutils_unittest.cc b/src/utils/stringutils_unittest.cc index c90dd1afd..998c5831b 100644 --- a/src/utils/stringutils_unittest.cc +++ b/src/utils/stringutils_unittest.cc @@ -22,6 +22,8 @@ #include "configuration.h" #include "logger.h" +#include "const/utils/utf8.h" + #include "utils/physfstools.h" #include "resources/iteminfo.h" -- cgit v1.2.3-70-g09d2