mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 20:11:55 +00:00
Use fmt::format for LOGWARNING
The format string can be checked at compile time. It will be easier to transition to `std::format`.
This commit is contained in:
42 files changed
+160
-90
No files matched your search
@@ -300,7 +300,10 @@ bool IGUIObject::ApplyStyle(const CStr& StyleName)
|
||||
if (SettingExists(p.first))
|
||||
m_Settings.at(p.first)->FromString(p.second, true);
|
||||
else if (StyleName != "default")
|
||||
LOGWARNING("GUI object has no setting \"%s\", but the style \"%s\" defines it", p.first, StyleName.c_str());
|
||||
{
|
||||
LOGWARNING("GUI object has no setting \"{}\", but the style \"{}\" defines it",
|
||||
p.first, StyleName);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user