1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-16 20:46:34 +00:00

Use an anonymous namespace in element.cpp

This commit is contained in:
uramer 2022-05-19 16:10:49 +02:00
parent 5d7fc0ab17
commit 9042f47f0a

View file

@ -7,6 +7,8 @@
#include "widget.hpp" #include "widget.hpp"
namespace LuaUi namespace LuaUi
{
namespace
{ {
namespace LayoutKeys namespace LayoutKeys
{ {
@ -22,7 +24,7 @@ namespace LuaUi
const std::string defaultWidgetType = "LuaWidget"; const std::string defaultWidgetType = "LuaWidget";
const uint64_t maxDepth = 250; constexpr uint64_t maxDepth = 250;
std::string widgetType(const sol::table& layout) std::string widgetType(const sol::table& layout)
{ {
@ -165,6 +167,7 @@ namespace LuaUi
} }
return newLayer; return newLayer;
} }
}
std::map<Element*, std::shared_ptr<Element>> Element::sAllElements; std::map<Element*, std::shared_ptr<Element>> Element::sAllElements;