From afb1162c4382a72ad281207bad3ba6512f3ae897 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Thu, 20 Jun 2019 15:45:11 -0700 Subject: [PATCH] Compile fixes --- specter/lib/Translator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specter/lib/Translator.cpp b/specter/lib/Translator.cpp index 2bb98748e..668e062ac 100644 --- a/specter/lib/Translator.cpp +++ b/specter/lib/Translator.cpp @@ -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()); }