diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-19 14:52:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-19 15:12:25 +0300 |
commit | 38ce14ec8b53fadf71d2b54406e8513a8a965514 (patch) | |
tree | 4adfdecf498598d706946e2e074fd69b8c639a4a | |
parent | e779e35c2405549e15bc64822dc3f696ff4357f5 (diff) | |
download | manaverse-38ce14ec8b53fadf71d2b54406e8513a8a965514.tar.gz manaverse-38ce14ec8b53fadf71d2b54406e8513a8a965514.tar.bz2 manaverse-38ce14ec8b53fadf71d2b54406e8513a8a965514.tar.xz manaverse-38ce14ec8b53fadf71d2b54406e8513a8a965514.zip |
improve function pointers usage in whoisonline.
-rw-r--r-- | src/gui/windows/whoisonline.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp index fe76c7ea5..e97ae3095 100644 --- a/src/gui/windows/whoisonline.cpp +++ b/src/gui/windows/whoisonline.cpp @@ -529,7 +529,7 @@ int WhoIsOnline::downloadThread(void *ptr) wio->mDownloadedBytes = 0; curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, - WhoIsOnline::memoryWrite); + &WhoIsOnline::memoryWrite); curl_easy_setopt(curl, CURLOPT_WRITEDATA, ptr); curl_easy_setopt(curl, CURLOPT_USERAGENT, @@ -600,7 +600,7 @@ void WhoIsOnline::download() SDL_WaitThread(mThread, nullptr); mDownloadComplete = false; - mThread = SDL::createThread(WhoIsOnline::downloadThread, + mThread = SDL::createThread(&WhoIsOnline::downloadThread, "whoisonline", this); if (mThread == nullptr) mDownloadStatus = UPDATE_ERROR; |