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:
phosit committed 2026-10-05 20:29:25 +02:00
1 parent d686708c92
commit ba158aa3ff
42 files changed
+160 -90

No files matched your search

+4 -1
View File
@@ -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;
}