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:
parent
5d7fc0ab17
commit
9042f47f0a
1 changed files with 145 additions and 142 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue