From 9cedbf0ce4b072f910414b8ff33717f898840012 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 11 Jul 2018 13:42:27 +0300 Subject: obsoleted helpers removed --- plugins/SpellChecker/src/autoreplace.cpp | 8 ++++---- plugins/SpellChecker/src/stdafx.h | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins/SpellChecker') diff --git a/plugins/SpellChecker/src/autoreplace.cpp b/plugins/SpellChecker/src/autoreplace.cpp index 921f105c7f..2dfe7787df 100644 --- a/plugins/SpellChecker/src/autoreplace.cpp +++ b/plugins/SpellChecker/src/autoreplace.cpp @@ -64,8 +64,8 @@ void AutoReplaceMap::loadAutoReplaceMap() } if (p != nullptr) { - Utf8ToTchar find(tmp); - Utf8ToTchar replace(p); + ptrW find(Utf8DecodeW(tmp)); + ptrW replace(Utf8DecodeW(p)); lstrtrim(find); lstrtrim(replace); @@ -102,8 +102,8 @@ void AutoReplaceMap::writeAutoReplaceMap() for (; it != m_replacements.end(); it++) { AutoReplacement &ar = it->second; - TcharToUtf8 find(it->first.c_str()); - TcharToUtf8 replace(ar.replace.c_str()); + ptrA find(Utf8EncodeW(it->first.c_str())); + ptrA replace(Utf8EncodeW(ar.replace.c_str())); if (ar.useVariables) fprintf(file, "%s-V>%s\n", (const char *)find, (const char *)replace); diff --git a/plugins/SpellChecker/src/stdafx.h b/plugins/SpellChecker/src/stdafx.h index a6dd064cb4..6907c7aa30 100644 --- a/plugins/SpellChecker/src/stdafx.h +++ b/plugins/SpellChecker/src/stdafx.h @@ -54,7 +54,6 @@ using namespace std; #include #include <../../utils/mir_options.h> -#include <../../utils/utf8_helpers.h> #include -- cgit v1.2.3