1
0
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:
uramer 2022-05-19 16:10:49 +02:00
parent 5d7fc0ab17
commit 9042f47f0a

View File

@ -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;