From 2f32dca480e873a5bcc0f91f76b2490cd1bec0a9 Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Wed, 27 Dec 2017 20:11:54 +0300
Subject: Remove default parameter from download.

---
 src/gui/windows/serverdialog.cpp       | 3 ++-
 src/gui/windows/updaterwindow.cpp      | 3 ++-
 src/net/download.h                     | 3 ++-
 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();
 }
 
-- 
cgit v1.2.3-70-g09d2