mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00:00
Codefix: NWidgetDisplayFlag and MWidContainerFlag should be scoped enums
This commit is contained in:
committed by
Peter Nelson
parent
cca03f3112
commit
d2dd4d4e4a
+2
-2
@@ -354,7 +354,7 @@ public:
|
||||
};
|
||||
|
||||
/** Nested widget flags that affect display and interaction with 'real' widgets. */
|
||||
enum NWidgetDisplayFlag : uint8_t {
|
||||
enum class NWidgetDisplayFlag : uint8_t {
|
||||
/* Generic. */
|
||||
Lowered, ///< Widget is lowered (pressed down) bit.
|
||||
Disabled, ///< Widget is disabled (greyed out) bit.
|
||||
@@ -566,7 +566,7 @@ private:
|
||||
};
|
||||
|
||||
/** Nested widget container flags, */
|
||||
enum NWidContainerFlag : uint8_t {
|
||||
enum class NWidContainerFlag : uint8_t {
|
||||
EqualSize, ///< Containers should keep all their (resizing) children equally large.
|
||||
BigFirst, ///< Allocate space to biggest resize first.
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user