summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-19 14:52:49 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:25 +0300
commit38ce14ec8b53fadf71d2b54406e8513a8a965514 (patch)
tree4adfdecf498598d706946e2e074fd69b8c639a4a /src/gui/windows
parente779e35c2405549e15bc64822dc3f696ff4357f5 (diff)
downloadmv-38ce14ec8b53fadf71d2b54406e8513a8a965514.tar.gz
mv-38ce14ec8b53fadf71d2b54406e8513a8a965514.tar.bz2
mv-38ce14ec8b53fadf71d2b54406e8513a8a965514.tar.xz
mv-38ce14ec8b53fadf71d2b54406e8513a8a965514.zip
improve function pointers usage in whoisonline.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/whoisonline.cpp4
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;