From 38ce14ec8b53fadf71d2b54406e8513a8a965514 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 19 Oct 2013 14:52:49 +0300 Subject: improve function pointers usage in whoisonline. --- src/gui/windows/whoisonline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2