summaryrefslogtreecommitdiff
path: root/plugins/Boltun/src/actionQueue.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-10-20 17:38:06 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-10-20 17:38:06 +0000
commit6183362250af373372830fbd5d4d952b0038bbfc (patch)
tree986e7c937720b5d93e00dcc2e7ee3b2f47a7286d /plugins/Boltun/src/actionQueue.cpp
parent7e4a5794928702bf435f3d7be339a6c553fe618a (diff)
more warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@6558 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Boltun/src/actionQueue.cpp')
-rw-r--r--plugins/Boltun/src/actionQueue.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Boltun/src/actionQueue.cpp b/plugins/Boltun/src/actionQueue.cpp
index 014e8919ba..3514ae994b 100644
--- a/plugins/Boltun/src/actionQueue.cpp
+++ b/plugins/Boltun/src/actionQueue.cpp
@@ -111,7 +111,7 @@ static void TimerAnswer(HANDLE hContact, const TalkBot::MessageInfo* info)
bot->AnswerGiven(hContact, *info);
delete info;
- delete msg;
+ delete [] msg;
typingContactsLock.Enter();
typingContacts.erase(hContact);
@@ -169,7 +169,7 @@ void DoAnswer(HANDLE hContact, const TalkBot::MessageInfo *info, bool sticky = f
if (!actionQueue.empty())
{
list<QueueElement>::iterator it = actionQueue.end();
- it--;
+ --it;
while (true)
{
if ((*it).hContact == hContact)
@@ -178,7 +178,7 @@ void DoAnswer(HANDLE hContact, const TalkBot::MessageInfo *info, bool sticky = f
break;
list<QueueElement>::iterator tmp = it;
if (tmp != actionQueue.begin())
- tmp--;
+ --tmp;
actionQueue.erase(it);
it = tmp;
if (actionQueue.empty())
@@ -186,7 +186,7 @@ void DoAnswer(HANDLE hContact, const TalkBot::MessageInfo *info, bool sticky = f
}
if (it == actionQueue.begin())
break;
- it--;
+ --it;
}
}
typingContactsLock.Enter();