From d5b4c1874ab95b16072c425d29a52d75824042d4 Mon Sep 17 00:00:00 2001 From: Dmytro Bogovych Date: Thu, 27 Dec 2018 13:31:03 +0200 Subject: [PATCH] - make StringHelper::toUtf8() synonym for makeUtf8() --- src/engine/helper/HL_String.cpp | 5 +++++ src/engine/helper/HL_String.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/engine/helper/HL_String.cpp b/src/engine/helper/HL_String.cpp index 96152d5c..b627101f 100644 --- a/src/engine/helper/HL_String.cpp +++ b/src/engine/helper/HL_String.cpp @@ -53,6 +53,11 @@ std::string StringHelper::makeUtf8(const std::tstring &arg) #endif } +std::string StringHelper::toUtf8(const std::tstring &arg) +{ + return makeUtf8(arg); +} + std::tstring StringHelper::makeTstring(const std::string& arg) { #if defined(TARGET_WIN) diff --git a/src/engine/helper/HL_String.h b/src/engine/helper/HL_String.h index 9ed40211..d68a297d 100644 --- a/src/engine/helper/HL_String.h +++ b/src/engine/helper/HL_String.h @@ -23,6 +23,7 @@ public: static std::string appendPath(const std::string& s1, const std::string& s2); static std::string makeUtf8(const std::tstring& arg); + static std::string toUtf8(const std::tstring& arg); static std::tstring makeTstring(const std::string& arg); static int toInt(const char* s, int defaultValue, bool* isOk = nullptr); static uint64_t toUint64(const char* s, uint64_t def, bool *isOk = nullptr);