summaryrefslogtreecommitdiff
path: root/src/gui/updaterwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/updaterwindow.h')
-rw-r--r--src/gui/updaterwindow.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/gui/updaterwindow.h b/src/gui/updaterwindow.h
index fb94b0e97..1ee35195a 100644
--- a/src/gui/updaterwindow.h
+++ b/src/gui/updaterwindow.h
@@ -43,14 +43,22 @@ class ProgressBar;
class ResourceManager;
class ScrollArea;
-struct updateFile final
+struct UpdateFile final
{
public:
+ UpdateFile() :
+ name(),
+ hash(),
+ type(),
+ desc(),
+ required(false)
+ {
+ }
std::string name;
std::string hash;
std::string type;
- bool required;
std::string desc;
+ bool required;
};
/**
@@ -127,8 +135,6 @@ class UpdaterWindow final : public Window,
static void loadManaPlusUpdates(const std::string &dir,
const ResourceManager *const resman);
- int updateState;
-
private:
void download();
@@ -212,10 +218,10 @@ private:
Net::Download *mDownload;
/** List of files to download. */
- std::vector<updateFile> mUpdateFiles;
+ std::vector<UpdateFile> mUpdateFiles;
/** List of temp files to download. */
- std::vector<updateFile> mTempUpdateFiles;
+ std::vector<UpdateFile> mTempUpdateFiles;
/** Index of the file to be downloaded. */
unsigned int mUpdateIndex;