diff options
author | George Hazan <ghazan@miranda.im> | 2018-01-15 15:30:14 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-01-15 15:30:14 +0300 |
commit | 05d6c1473c320e1f6f5c489983f64085d26504f5 (patch) | |
tree | 7f634c6e0f9feacb65b1e99eee7f02f1dee4ee18 /plugins/SpellChecker/src/stdafx.h | |
parent | aa860d8a7b584886f7606369fbddd85e6db5a500 (diff) |
fix for various memory problems in SpellChecker
Diffstat (limited to 'plugins/SpellChecker/src/stdafx.h')
-rw-r--r-- | plugins/SpellChecker/src/stdafx.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/SpellChecker/src/stdafx.h b/plugins/SpellChecker/src/stdafx.h index 2b7fd394f8..033c84e806 100644 --- a/plugins/SpellChecker/src/stdafx.h +++ b/plugins/SpellChecker/src/stdafx.h @@ -54,9 +54,7 @@ using namespace std; #include <m_spellchecker.h>
#include <../../utils/mir_options.h>
-//#include <../../utils/tstring.h>
#include <../../utils/utf8_helpers.h>
-#include <../../utils/scope.h>
#include <hunspell.hpp>
@@ -130,7 +128,7 @@ struct Dialog static BOOL CenterParent(HWND hwnd);
wchar_t *lstrtrim(wchar_t *str);
-BOOL lstreq(wchar_t *a, wchar_t *b, size_t len = -1);
+
inline BOOL IsNumber(wchar_t c)
{
return c >= '0' && c <= '9';
@@ -152,7 +150,7 @@ LRESULT CALLBACK MenuWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); void ModifyIcon(Dialog *dlg);
BOOL GetWordCharRange(Dialog *dlg, CHARRANGE &sel, wchar_t *text, size_t text_len, int &first_char);
-wchar_t *GetWordUnderPoint(Dialog *dlg, POINT pt, CHARRANGE &sel);
+wchar_t* GetWordUnderPoint(Dialog *dlg, POINT pt, CHARRANGE &sel);
int GetClosestLanguage(wchar_t *lang_name);
|