mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-12 07:40:45 +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:
@@ -196,7 +196,7 @@ bool warn(JSContext* cx, unsigned int argc, JS::Value* vp)
|
||||
std::wstring str;
|
||||
if (!Script::FromJSVal(rq, args[0], str))
|
||||
return false;
|
||||
LOGWARNING("%s", utf8_from_wstring(str));
|
||||
LOGWARNING("{}", utf8_from_wstring(str));
|
||||
args.rval().setUndefined();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user