summaryrefslogtreecommitdiff
path: root/plugins/SpellChecker/src/RichEdit.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-01-18 23:42:33 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-01-18 23:42:33 +0300
commit44a8248b1b19375130144a783d1758e1f83d3c88 (patch)
treec8e134b6c1d1a7a8ae463989116a38c055af0d2b /plugins/SpellChecker/src/RichEdit.cpp
parent61757497a901760271660c20390fc39aa6300a42 (diff)
SpellChecker:
- fix for a memory allocation zoo; - code cleaning; - version bump
Diffstat (limited to 'plugins/SpellChecker/src/RichEdit.cpp')
-rw-r--r--plugins/SpellChecker/src/RichEdit.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/SpellChecker/src/RichEdit.cpp b/plugins/SpellChecker/src/RichEdit.cpp
index 8cc6fd0e20..fa001f1847 100644
--- a/plugins/SpellChecker/src/RichEdit.cpp
+++ b/plugins/SpellChecker/src/RichEdit.cpp
@@ -241,7 +241,7 @@ void RichEdit::ReplaceSel(const wchar_t *new_text)
SuspendUndo();
- FixSel(&m_old_sel, sel, mir_wstrlen(new_text));
+ FixSel(&m_old_sel, sel, (int)mir_wstrlen(new_text));
SendMessage(WM_SETREDRAW, FALSE, 0);
SendMessage(EM_SETEVENTMASK, 0, m_old_mask & ~ENM_CHANGE);
@@ -257,7 +257,7 @@ int RichEdit::Replace(int start, int end, const wchar_t *new_text)
ReplaceSel(new_text);
- int dif = FixSel(&sel, replace_sel, mir_wstrlen(new_text));
+ int dif = FixSel(&sel, replace_sel, (int)mir_wstrlen(new_text));
SetSel(sel);
return dif;
}
@@ -270,7 +270,7 @@ int RichEdit::Insert(int pos, const wchar_t *text)
ReplaceSel(text);
- int dif = FixSel(&sel, replace_sel, mir_wstrlen(text));
+ int dif = FixSel(&sel, replace_sel, (int)mir_wstrlen(text));
SetSel(sel);
return dif;
}