diff options
author | George Hazan <ghazan@miranda.im> | 2018-02-21 18:38:40 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-21 18:40:14 +0300 |
commit | 9d0174ebe2bd005418855b18f737c36d5c20ab4a (patch) | |
tree | df3bce783a32e7cfcf14952da53a7b1adeb72f84 /protocols/VKontakte/src/misc.cpp | |
parent | 007e02e4152c7282af4b8f844d927f223ce6f69f (diff) |
VK: C++'11 iterators
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 98e9020460..c8479c6911 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -537,15 +537,15 @@ void CVkProto::ApplyCookies(AsyncHttpRequest *pReq) debugLogA("CVkProto::ApplyCookies");
CMStringA szCookie;
- for (int i = 0; i < m_cookies.getCount(); i++) {
- if (!strstr(pReq->m_szUrl, m_cookies[i].m_domain))
+ for (auto &it : m_cookies) {
+ if (!strstr(pReq->m_szUrl, it->m_domain))
continue;
if (!szCookie.IsEmpty())
szCookie.Append("; ");
- szCookie.Append(m_cookies[i].m_name);
+ szCookie.Append(it->m_name);
szCookie.AppendChar('=');
- szCookie.Append(m_cookies[i].m_value);
+ szCookie.Append(it->m_value);
}
if (!szCookie.IsEmpty())
|