From e2ce3313fe054a776d6757b69930861d9fd4406c Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 23 Apr 2015 07:41:44 +0000 Subject: warning fix stopstam works only with real protocols git-svn-id: http://svn.miranda-ng.org/main/trunk@13050 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/StopSpamPlus/src/utils.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/StopSpamPlus/src/utils.cpp') diff --git a/plugins/StopSpamPlus/src/utils.cpp b/plugins/StopSpamPlus/src/utils.cpp index b8dd8371e5..2e83400e19 100644 --- a/plugins/StopSpamPlus/src/utils.cpp +++ b/plugins/StopSpamPlus/src/utils.cpp @@ -8,14 +8,14 @@ tstring &GetDlgItemString(HWND hwnd, int id) GetWindowText(h, buf, len + 1); static tstring s; s = buf; - delete []buf; + delete[]buf; return s; } bool IsExistMyMessage(MCONTACT hContact) { MEVENT hDbEvent = db_event_first(hContact); - while(hDbEvent){ + while (hDbEvent) { DBEVENTINFO dbei = { sizeof(dbei) }; if (db_event_get(hDbEvent, &dbei)) break; @@ -64,11 +64,11 @@ tstring variables_parse(tstring const &tstrFormat, MCONTACT hContact){ tstring trim(const tstring &tstr, const tstring& trimChars) { - size_t s = tstr.find_first_not_of(trimChars); - size_t e = tstr.find_last_not_of (trimChars); + size_t s = tstr.find_first_not_of(trimChars); + size_t e = tstr.find_last_not_of(trimChars); - if ((tstring::npos == s) || ( tstring::npos == e)) - return _T(""); - else - return tstr.substr(s, e - s + 1); + if ((tstring::npos == s) || (tstring::npos == e)) + return _T(""); + else + return tstr.substr(s, e - s + 1); } \ No newline at end of file -- cgit v1.2.3