Skip to content

Commit 5a5a559

Browse files
committed
Explicit number values for serialized enums.
1 parent 1d39aa3 commit 5a5a559

6 files changed

Lines changed: 11 additions & 10 deletions

File tree

Sources/BuiltInNodes/BI_BuiltInFeatures.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class EnableDisableFeature : public NodeFeature
2424

2525
enum class Mode
2626
{
27-
DoNotInvalidate = 0,
28-
Invalidate = 1
27+
DoNotInvalidate = 0,
28+
Invalidate = 1
2929
};
3030

3131
EnableDisableFeature ();

Sources/NodeEngine/NE_InputSlot.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ namespace NE
99

1010
enum class OutputSlotConnectionMode
1111
{
12-
Disabled,
13-
Single,
14-
Multiple
12+
Disabled = 0,
13+
Single = 1,
14+
Multiple = 2
1515
};
1616

1717
class InputSlot : public Slot

Sources/NodeEngine/NE_LocString.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace NE
66
SERIALIZATION_INFO (LocString, 1);
77

88
LocString::LocString () :
9-
LocString (std::wstring ())
9+
LocString (std::wstring (), Localization::Undefined)
1010
{
1111
}
1212

Sources/NodeEngine/NE_LocString.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class LocString
1515
public:
1616
enum class Localization
1717
{
18+
Undefined = 0,
1819
Localize = 1,
1920
DoNotLocalize = 2
2021
};

Sources/NodeEngine/NE_NodeManager.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ class NodeManager
4949
public:
5050
enum class UpdateMode
5151
{
52-
Automatic,
53-
Manual
52+
Automatic = 0,
53+
Manual = 1
5454
};
5555

5656
NodeManager ();

Sources/NodeUIEngine/NUIE_UIInputSlot.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class InputSlotCommandRegistrator;
1111

1212
enum class ConnectionDisplayMode
1313
{
14-
Normal,
15-
Hidden
14+
Normal = 0,
15+
Hidden = 1
1616
};
1717

1818
class UIInputSlot : public NE::InputSlot

0 commit comments

Comments
 (0)