add const char* ctor
This commit is contained in:
@@ -15,6 +15,7 @@ namespace Nz
|
||||
public:
|
||||
LocalizedText();
|
||||
LocalizedText(std::string_view str);
|
||||
LocalizedText(const char* str);
|
||||
|
||||
template <typename T> LocalizedText& Arg(T&& v)
|
||||
{
|
||||
|
||||
@@ -16,6 +16,10 @@ namespace Nz
|
||||
, m_locale(nullptr)
|
||||
{}
|
||||
|
||||
LocalizedText::LocalizedText(const char* str)
|
||||
: LocalizedText(std::string_view{ str })
|
||||
{}
|
||||
|
||||
void LocalizedText::Update() const
|
||||
{
|
||||
if (m_locale != Nz::Localization::Instance()->m_currentLocale)
|
||||
|
||||
Reference in New Issue
Block a user