Skip to content

Commit 401e3ca

Browse files
committed
Clang build fix.
1 parent 723683c commit 401e3ca

4 files changed

Lines changed: 17 additions & 5 deletions

File tree

Sources/MacOSEmbeddingDemo/Application.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ static void InitNodeTree (NUIE::NodeTree& nodeTree)
401401
[myWindow setContentView:contentView];
402402
[myWindow setDelegate:myWindowController];
403403

404-
NUIE::EnableFeature (Feature::ConnectionDisplay, true);
404+
NUIE::EnableFeature (NUIE::Feature::ConnectionDisplay, true);
405405
uiEnvironment.Init (&nodeEditor, contentView, 0, 0, windowRect.size.width, windowRect.size.height);
406406
[myWindow center];
407407
[myWindow makeKeyAndOrderFront:nil];

Sources/NodeUIEngine/NUIE_FeatureSet.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
#include <unordered_map>
44
#include <functional>
55

6+
namespace std
7+
{
8+
template <>
9+
struct hash<NUIE::Feature>
10+
{
11+
size_t operator() (const NUIE::Feature& featureId) const noexcept
12+
{
13+
return (size_t) featureId;
14+
}
15+
};
16+
}
17+
618
namespace NUIE
719
{
820

Sources/NodeUIEngine/NUIE_FeatureSet.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
#include <string>
55

6+
namespace NUIE
7+
{
8+
69
enum class Feature
710
{
811
ConnectionDisplay
912
};
1013

11-
namespace NUIE
12-
{
13-
1414
class FeatureEnableGuard
1515
{
1616
public:

Sources/WindowsReferenceApp/Application.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void Application::Init (HWND hwnd)
2626
{
2727
InitFileMenu (hwnd);
2828
InitToolbar (hwnd);
29-
NUIE::EnableFeature (Feature::ConnectionDisplay, true);
29+
NUIE::EnableFeature (NUIE::Feature::ConnectionDisplay, true);
3030
uiEnvironment.Init (&nodeEditor, &fileMenu, &toolbar, hwnd);
3131
}
3232

0 commit comments

Comments
 (0)