From 0bdaa773a4ee5a678c400a1b097190e3856ee5a6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 3 Jun 2015 17:23:55 +0300 Subject: Convert UpdateType enum into strong typed enum. --- src/gui/windows/updaterwindow.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui/windows/updaterwindow.h') diff --git a/src/gui/windows/updaterwindow.h b/src/gui/windows/updaterwindow.h index 06f707528..6484fe09d 100644 --- a/src/gui/windows/updaterwindow.h +++ b/src/gui/windows/updaterwindow.h @@ -24,6 +24,7 @@ #define GUI_WINDOWS_UPDATERWINDOW_H #include "enums/net/downloadstatus.h" +#include "enums/net/updatetype.h" #include "gui/widgets/linkhandler.h" #include "gui/widgets/window.h" @@ -69,7 +70,8 @@ class UpdaterWindow final : public Window, */ UpdaterWindow(const std::string &restrict updateHost, const std::string &restrict updatesDir, - const bool applyUpdates, const int updateType); + const bool applyUpdates, + const UpdateTypeT updateType); A_DELETE_COPY(UpdaterWindow) @@ -242,7 +244,7 @@ class UpdaterWindow final : public Window, /** Index offset for disaplay downloaded file. */ unsigned int mUpdateIndexOffset; - int mUpdateType; + UpdateTypeT mUpdateType; /** A flag to indicate whether to use a memory buffer or a regular * file. -- cgit v1.2.3-70-g09d2