From 6b15e62c1fefe8838bbc56cb314f3ab24ccebbc4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 Jun 2015 17:48:11 +0300 Subject: Convert DownloadStatus enum into strong typed enum. --- src/enums/net/downloadstatus.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/enums/net/downloadstatus.h') diff --git a/src/enums/net/downloadstatus.h b/src/enums/net/downloadstatus.h index a217e7a78..9a4730fba 100644 --- a/src/enums/net/downloadstatus.h +++ b/src/enums/net/downloadstatus.h @@ -22,17 +22,17 @@ #ifndef ENUMS_NET_DOWNLOADSTATUS_H #define ENUMS_NET_DOWNLOADSTATUS_H -namespace DownloadStatus +#include "enums/simpletypes/enumdefines.h" + +enumStart(DownloadStatus) { - enum Type - { - Cancelled = -3, - ThreadError = -2, - Error = -1, - Starting = 0, - Idle = 1, - Complete = 2 - }; -} // namespace DownloadStatus + Cancelled = -3, + ThreadError = -2, + Error = -1, + Starting = 0, + Idle = 1, + Complete = 2 +} +enumEnd(DownloadStatus); #endif // ENUMS_NET_DOWNLOADSTATUS_H -- cgit v1.2.3-70-g09d2