mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-11 00:44:33 +00:00
Use an anonymous namespace in element.cpp
This commit is contained in:
parent
5d7fc0ab17
commit
9042f47f0a
@ -7,6 +7,8 @@
|
||||
#include "widget.hpp"
|
||||
|
||||
namespace LuaUi
|
||||
{
|
||||
namespace
|
||||
{
|
||||
namespace LayoutKeys
|
||||
{
|
||||
@ -22,7 +24,7 @@ namespace LuaUi
|
||||
|
||||
const std::string defaultWidgetType = "LuaWidget";
|
||||
|
||||
const uint64_t maxDepth = 250;
|
||||
constexpr uint64_t maxDepth = 250;
|
||||
|
||||
std::string widgetType(const sol::table& layout)
|
||||
{
|
||||
@ -165,6 +167,7 @@ namespace LuaUi
|
||||
}
|
||||
return newLayer;
|
||||
}
|
||||
}
|
||||
|
||||
std::map<Element*, std::shared_ptr<Element>> Element::sAllElements;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user