From 509fbd91ed545d05cc266a80ec19fe7b9c9d28db Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 20 Jul 2018 13:25:21 +0300 Subject: we don't need two name sets for the same array of functions --- plugins/SpellChecker/src/autoreplace.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/SpellChecker/src') diff --git a/plugins/SpellChecker/src/autoreplace.cpp b/plugins/SpellChecker/src/autoreplace.cpp index 2dfe7787df..bec1572b85 100644 --- a/plugins/SpellChecker/src/autoreplace.cpp +++ b/plugins/SpellChecker/src/autoreplace.cpp @@ -64,8 +64,8 @@ void AutoReplaceMap::loadAutoReplaceMap() } if (p != nullptr) { - ptrW find(Utf8DecodeW(tmp)); - ptrW replace(Utf8DecodeW(p)); + ptrW find(mir_utf8decodeW(tmp)); + ptrW replace(mir_utf8decodeW(p)); lstrtrim(find); lstrtrim(replace); @@ -102,8 +102,8 @@ void AutoReplaceMap::writeAutoReplaceMap() for (; it != m_replacements.end(); it++) { AutoReplacement &ar = it->second; - ptrA find(Utf8EncodeW(it->first.c_str())); - ptrA replace(Utf8EncodeW(ar.replace.c_str())); + ptrA find(mir_utf8encodeW(it->first.c_str())); + ptrA replace(mir_utf8encodeW(ar.replace.c_str())); if (ar.useVariables) fprintf(file, "%s-V>%s\n", (const char *)find, (const char *)replace); -- cgit v1.2.3