diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-27 20:11:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-27 20:11:54 +0300 |
commit | 2f32dca480e873a5bcc0f91f76b2490cd1bec0a9 (patch) | |
tree | 1122925e4407979234daddcf63551bad6c704188 /src | |
parent | 1f79d44ff9a74d6cb507ac998a01fc3acbc55651 (diff) | |
download | manaplus-2f32dca480e873a5bcc0f91f76b2490cd1bec0a9.tar.gz manaplus-2f32dca480e873a5bcc0f91f76b2490cd1bec0a9.tar.bz2 manaplus-2f32dca480e873a5bcc0f91f76b2490cd1bec0a9.tar.xz manaplus-2f32dca480e873a5bcc0f91f76b2490cd1bec0a9.zip |
Remove default parameter from download.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/windows/serverdialog.cpp | 3 | ||||
-rw-r--r-- | src/gui/windows/updaterwindow.cpp | 3 | ||||
-rw-r--r-- | src/net/download.h | 3 | ||||
-rw-r--r-- | src/progs/manaplus/actions/actions.cpp | 2 |
4 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/windows/serverdialog.cpp b/src/gui/windows/serverdialog.cpp index a5a6885ad..c52912e2d 100644 --- a/src/gui/windows/serverdialog.cpp +++ b/src/gui/windows/serverdialog.cpp @@ -469,7 +469,8 @@ void ServerDialog::downloadServerList() mDownload = new Net::Download(this, listFile, &downloadUpdate, false, false, true); mDownload->setFile(pathJoin(mDir, - branding.getStringValue("onlineServerFile"))); + branding.getStringValue("onlineServerFile")), + -1); if (!listFile2.empty()) mDownload->addMirror(listFile2); mDownload->start(); diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp index 3acc930dc..6ca35ff9d 100644 --- a/src/gui/windows/updaterwindow.cpp +++ b/src/gui/windows/updaterwindow.cpp @@ -636,7 +636,8 @@ void UpdaterWindow::download() else { mDownload->setFile(pathJoin(mUpdatesDir, - mCurrentFile)); + mCurrentFile), + -1); } } diff --git a/src/net/download.h b/src/net/download.h index ce99b7b91..5affb0650 100644 --- a/src/net/download.h +++ b/src/net/download.h @@ -65,7 +65,8 @@ class Download final */ void noCache(); - void setFile(const std::string &filename, const int64_t adler32 = -1); + void setFile(const std::string &filename, + const int64_t adler32); void setWriteFunction(WriteFunction write); diff --git a/src/progs/manaplus/actions/actions.cpp b/src/progs/manaplus/actions/actions.cpp index 4f1998e2b..6dee5a6a1 100644 --- a/src/progs/manaplus/actions/actions.cpp +++ b/src/progs/manaplus/actions/actions.cpp @@ -204,7 +204,7 @@ static void uploadFile(const std::string &str, info->text = str; info->addStr = addStr; info->tab = tab; - upload->setFile(fileName); + upload->setFile(fileName, -1); upload->start(); } |