Commit 5dc6e289 authored by Phillip Stephens's avatar Phillip Stephens

Compile fixes

parent fac824cb
......@@ -30,7 +30,7 @@ static std::string_view RecursiveLookup(const athena::io::YAMLNode* node, std::s
if (*it == '/') {
const athena::io::YAMLNode* ch = node->findMapChild(std::string(start, it));
if (!ch)
return nullptr;
return {};
return RecursiveLookup(ch, it + 1, end);
}
}
......@@ -42,7 +42,7 @@ static std::string_view RecursiveLookup(const athena::io::YAMLNode* node, std::s
std::string_view Translator::translate(std::string_view key) const {
if (!m_targetLocale->rootNode())
return nullptr;
return {};
return RecursiveLookup(m_targetLocale->rootNode(), key.cbegin(), key.cend());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment