summaryrefslogtreecommitdiff
path: root/src/gui/updaterwindow.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-08 22:35:09 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-09 17:14:25 +0100
commit1b041ecccfbe44a4f50ffc086e3996e2b6eea4f7 (patch)
tree74cff7036d1ecfb4df5a79a7ca68bedce5bea47e /src/gui/updaterwindow.h
parent0ca05c54dd814f294617eda286ef175f01baa542 (diff)
downloadMana-1b041ecccfbe44a4f50ffc086e3996e2b6eea4f7.tar.gz
Mana-1b041ecccfbe44a4f50ffc086e3996e2b6eea4f7.tar.bz2
Mana-1b041ecccfbe44a4f50ffc086e3996e2b6eea4f7.tar.xz
Mana-1b041ecccfbe44a4f50ffc086e3996e2b6eea4f7.zip
C++11: Use default member initializers
This patch is not exhaustive.
Diffstat (limited to 'src/gui/updaterwindow.h')
-rw-r--r--src/gui/updaterwindow.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gui/updaterwindow.h b/src/gui/updaterwindow.h
index faf7a9a5..6c69cd9b 100644
--- a/src/gui/updaterwindow.h
+++ b/src/gui/updaterwindow.h
@@ -134,7 +134,7 @@ private:
};
/** Status of the current download. */
- UpdateDownloadStatus mDownloadStatus;
+ UpdateDownloadStatus mDownloadStatus = UPDATE_NEWS;
/** Host where we get the updated files. */
std::string mUpdateHost;
@@ -149,37 +149,37 @@ private:
std::string mNewLabelCaption;
/** The new progress value to be set in the logic method. */
- float mDownloadProgress;
+ float mDownloadProgress = 0.0f;
/** The mutex used to guard access to mNewLabelCaption and mDownloadProgress. */
Mutex mDownloadMutex;
/** The Adler32 checksum of the file currently downloading. */
- unsigned long mCurrentChecksum;
+ unsigned long mCurrentChecksum = 0;
/** A flag to indicate whether to use a memory buffer or a regular file. */
- bool mStoreInMemory;
+ bool mStoreInMemory = true;
/** Flag that show if current download is complete. */
- bool mDownloadComplete;
+ bool mDownloadComplete = true;
/** Flag that show if the user has canceled the update. */
- bool mUserCancel;
+ bool mUserCancel = false;
/** Byte count currently downloaded in mMemoryBuffer. */
- int mDownloadedBytes;
+ int mDownloadedBytes = 0;
/** Buffer for files downloaded to memory. */
- char *mMemoryBuffer;
+ char *mMemoryBuffer = nullptr;
/** Download handle. */
- Net::Download *mDownload;
+ Net::Download *mDownload = nullptr;
/** List of files to download. */
std::vector<updateFile> mUpdateFiles;
/** Index of the file to be downloaded. */
- unsigned int mUpdateIndex;
+ unsigned int mUpdateIndex = 0;
/** Tells ~UpdaterWindow() if it should load updates */
bool mLoadUpdates;