1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-17 05:16:37 +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

@ -8,6 +8,8 @@
namespace LuaUi namespace LuaUi
{ {
namespace
{
namespace LayoutKeys namespace LayoutKeys
{ {
constexpr std::string_view type = "type"; constexpr std::string_view type = "type";
@ -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;