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
2026-09-03 15:33:30 +02:00
parent d686708c92
commit ba158aa3ff
42 changed files with 160 additions and 90 deletions
+1 -1
View File
@@ -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;
}