summaryrefslogtreecommitdiff
path: root/src/gui/whoisonline.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-07 17:55:36 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-07 21:38:21 +0300
commitffeffa2314dbe03e0ced58e0c465760b54908690 (patch)
tree3da4d65e43a4b55aed7c01ec612c9dec50d1bd1c /src/gui/whoisonline.cpp
parentae550d179c25e149f7e8a8d70011b364fb0d85d6 (diff)
downloadManaVerse-ffeffa2314dbe03e0ced58e0c465760b54908690.tar.gz
ManaVerse-ffeffa2314dbe03e0ced58e0c465760b54908690.tar.bz2
ManaVerse-ffeffa2314dbe03e0ced58e0c465760b54908690.tar.xz
ManaVerse-ffeffa2314dbe03e0ced58e0c465760b54908690.zip
fix cide style.
Add explicit keyword to some constructors.
Diffstat (limited to 'src/gui/whoisonline.cpp')
-rw-r--r--src/gui/whoisonline.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp
index 84f0fd2f5..6a5ae8f70 100644
--- a/src/gui/whoisonline.cpp
+++ b/src/gui/whoisonline.cpp
@@ -490,15 +490,12 @@ int WhoIsOnline::downloadThread(void *ptr)
{
int attempts = 0;
WhoIsOnline *wio = reinterpret_cast<WhoIsOnline *>(ptr);
- CURL *curl;
CURLcode res;
-
std::string url(Client::getServerName() + "/online.txt");
while (attempts < 1 && !wio->mDownloadComplete)
{
- curl = curl_easy_init();
-
+ CURL *curl = curl_easy_init();
if (curl)
{
if (!wio->mAllowUpdate)