🔨 Restore GCC 5 compatibility

We can support this much older compiler with just these few minor
changes.
This commit is contained in:
Gleb Mazovetskiy 2021-04-27 11:07:59 +01:00 committed by Anders Jenbo
commit 46a5dc147b
13 changed files with 48 additions and 24 deletions

View file

@ -88,21 +88,21 @@ const std::string &ConfigPath()
const std::string &LangPath()
{
if (!langPath)
langPath = MO_LANG_DIR;
langPath.emplace(MO_LANG_DIR);
return *langPath;
}
const std::string &TtfPath()
{
if (!ttfPath)
ttfPath = TTF_FONT_DIR;
ttfPath.emplace(TTF_FONT_DIR);
return *ttfPath;
}
const std::string &TtfName()
{
if (!ttfName)
ttfName = TTF_FONT_NAME;
ttfName.emplace(TTF_FONT_NAME);
return *ttfName;
}