summaryrefslogtreecommitdiff
path: root/plugins/StopSpamPlus/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-12-10 00:39:55 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-12-10 00:39:55 +0300
commit90674ba62902b7aaeceeb4c326469a74a32a259d (patch)
treef7f6889e14bd882da1c4f477ccb9555db43744fa /plugins/StopSpamPlus/src/utils.cpp
parent002c6191a3cda8db182f2ca26bb182d3274ab960 (diff)
StopSpam moved to CMOption<> instead of custom code
Diffstat (limited to 'plugins/StopSpamPlus/src/utils.cpp')
-rw-r--r--plugins/StopSpamPlus/src/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/StopSpamPlus/src/utils.cpp b/plugins/StopSpamPlus/src/utils.cpp
index f2aea2b380..897c403178 100644
--- a/plugins/StopSpamPlus/src/utils.cpp
+++ b/plugins/StopSpamPlus/src/utils.cpp
@@ -31,13 +31,13 @@ bool IsExistMyMessage(MCONTACT hContact)
return false;
}
-tstring variables_parse(tstring const &tstrFormat, MCONTACT hContact)
+tstring variables_parse(const wchar_t *tstrFormat, MCONTACT hContact)
{
if (ServiceExists(MS_VARS_FORMATSTRING)) {
FORMATINFO fi;
memset(&fi, 0, sizeof(fi));
fi.cbSize = sizeof(fi);
- fi.tszFormat = wcsdup(tstrFormat.c_str());
+ fi.tszFormat = wcsdup(tstrFormat);
fi.hContact = hContact;
fi.flags |= FIF_TCHAR;
wchar_t *tszParsed = (wchar_t *)CallService(MS_VARS_FORMATSTRING, (WPARAM)&fi, 0);