Define underlying type for enums so they can be forward-declared.

This commit is contained in:
Teo Mrnjavac 2016-03-03 16:03:41 +01:00
parent 62c377c348
commit 3c2f383b8e
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class LIBKPMCORE_EXPORT PartitionTable : public PartitionNode
friend LIBKPMCORE_EXPORT QTextStream& operator<<(QTextStream& stream, const PartitionTable& ptable); friend LIBKPMCORE_EXPORT QTextStream& operator<<(QTextStream& stream, const PartitionTable& ptable);
public: public:
enum TableType { enum TableType : qint8 {
unknownTableType = -1, unknownTableType = -1,
aix, aix,
@ -68,7 +68,7 @@ public:
}; };
/** Partition flags */ /** Partition flags */
enum Flag { enum Flag : qint32 {
FlagNone = 0, FlagNone = 0,
FlagBoot = 1, FlagBoot = 1,
FlagRoot = 2, FlagRoot = 2,