🔨 Restore GCC 5 compatibility
We can support this much older compiler with just these few minor changes.
This commit is contained in:
parent
7a1d3100ec
commit
46a5dc147b
13 changed files with 48 additions and 24 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue