diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-20 16:38:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-20 16:38:15 +0300 |
commit | 747dc30f256606e28fd932a9626da7c328114036 (patch) | |
tree | 1b3e7e70ba439d14d4936660d44c95c27816a11b /src/gui/updaterwindow.h | |
parent | cef2952156ab09371ed04beec00d0f1e8615ada9 (diff) | |
download | plus-747dc30f256606e28fd932a9626da7c328114036.tar.gz plus-747dc30f256606e28fd932a9626da7c328114036.tar.bz2 plus-747dc30f256606e28fd932a9626da7c328114036.tar.xz plus-747dc30f256606e28fd932a9626da7c328114036.zip |
fix style in gui directory.
Diffstat (limited to 'src/gui/updaterwindow.h')
-rw-r--r-- | src/gui/updaterwindow.h | 18 |
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; |