summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2017-08-20 15:19:25 +0200
committerRobert Pösel <robyer@seznam.cz>2017-08-20 15:20:04 +0200
commit4096afc6836ea217cc845cdeb28870f231237353 (patch)
treee7112a5a7a61b42ba19a7cb2694137c7a47ad319
parent67aab47fe7e9fdd2675529105595cd0213f74058 (diff)
Omegle: Fix compile warnings
-rw-r--r--protocols/Omegle/src/communication.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/Omegle/src/communication.cpp b/protocols/Omegle/src/communication.cpp
index 5eaadc8ef5..32e0d891df 100644
--- a/protocols/Omegle/src/communication.cpp
+++ b/protocols/Omegle/src/communication.cpp
@@ -456,10 +456,10 @@ bool Omegle_client::events()
{
HANDLE_ENTRY;
- std::string data = "id=" + this->chat_id_;
+ std::string post_data = "id=" + this->chat_id_;
// Get update
- http::response resp = flap(OMEGLE_REQUEST_EVENTS, &data);
+ http::response resp = flap(OMEGLE_REQUEST_EVENTS, &post_data);
// Return
switch (resp.code)
@@ -540,9 +540,9 @@ bool Omegle_client::events()
JSONNode *items = json_at(item, 1);
size_t size = json_size(items);
- for (size_t i = 0; i < size; i++) {
- likes += ptrW(json_as_string(json_at(items, i)));
- if (i < size - 1)
+ for (size_t j = 0; j < size; j++) {
+ likes += ptrW(json_as_string(json_at(items, j)));
+ if (j < size - 1)
likes += L", ";
}