summaryrefslogtreecommitdiff
path: root/plugins/SpellChecker/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SpellChecker/src')
-rw-r--r--plugins/SpellChecker/src/autoreplace.cpp8
-rw-r--r--plugins/SpellChecker/src/stdafx.h1
2 files changed, 4 insertions, 5 deletions
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 <m_spellchecker.h>
#include <../../utils/mir_options.h>
-#include <../../utils/utf8_helpers.h>
#include <hunspell.hpp>