summaryrefslogtreecommitdiff
path: root/src/gui/updaterwindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-20 16:38:15 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-20 16:38:15 +0300
commit747dc30f256606e28fd932a9626da7c328114036 (patch)
tree1b3e7e70ba439d14d4936660d44c95c27816a11b /src/gui/updaterwindow.h
parentcef2952156ab09371ed04beec00d0f1e8615ada9 (diff)
downloadmv-747dc30f256606e28fd932a9626da7c328114036.tar.gz
mv-747dc30f256606e28fd932a9626da7c328114036.tar.bz2
mv-747dc30f256606e28fd932a9626da7c328114036.tar.xz
mv-747dc30f256606e28fd932a9626da7c328114036.zip
fix style in gui directory.
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;