From 3c2f383b8e9155037187a0c38e3ba95ba2a9027e Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Thu, 3 Mar 2016 16:03:41 +0100 Subject: [PATCH] Define underlying type for enums so they can be forward-declared. --- src/core/partitiontable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/partitiontable.h b/src/core/partitiontable.h index cfcbbd7..70473fe 100644 --- a/src/core/partitiontable.h +++ b/src/core/partitiontable.h @@ -50,7 +50,7 @@ class LIBKPMCORE_EXPORT PartitionTable : public PartitionNode friend LIBKPMCORE_EXPORT QTextStream& operator<<(QTextStream& stream, const PartitionTable& ptable); public: - enum TableType { + enum TableType : qint8 { unknownTableType = -1, aix, @@ -68,7 +68,7 @@ public: }; /** Partition flags */ - enum Flag { + enum Flag : qint32 { FlagNone = 0, FlagBoot = 1, FlagRoot = 2,