From ea3f1f60358cfc18e2e698e989d40d202444fd32 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 7 Aug 2015 08:34:38 +0000 Subject: minor code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@14853 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'protocols/WhatsApp') diff --git a/protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp b/protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp index a14b576f14..113a69d2f1 100644 --- a/protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp +++ b/protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp @@ -122,8 +122,7 @@ WAConnection::WAConnection(const std::string &user, const std::string &resource, WAConnection::~WAConnection() { - std::map::iterator it; - for (it = this->pending_server_requests.begin(); it != this->pending_server_requests.end(); it++) + for (auto it = pending_server_requests.begin(); it != pending_server_requests.end(); ++it) delete it->second; } -- cgit v1.2.3