summaryrefslogtreecommitdiff
path: root/plugins/StopSpamPlus/src/utils.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-04-23 07:41:44 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-04-23 07:41:44 +0000
commite2ce3313fe054a776d6757b69930861d9fd4406c (patch)
tree751f545d1f0d2fb0209a52758e375ab3b32f04bf /plugins/StopSpamPlus/src/utils.cpp
parentb962a9cd6553fc816a61f4ff17b68445a84dabb2 (diff)
warning fix
stopstam works only with real protocols git-svn-id: http://svn.miranda-ng.org/main/trunk@13050 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StopSpamPlus/src/utils.cpp')
-rw-r--r--plugins/StopSpamPlus/src/utils.cpp16
1 files changed, 8 insertions, 8 deletions
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