Remove uint

It's better to use the native types.
This commit is contained in:
phosit committed 2026-09-21 18:11:47 +02:00
1 parent ae7801c9c7
commit 281e8cd862
15 files changed
+214 -156

No files matched your search

+2 -2
View File
@@ -57,7 +57,7 @@ void JSI_GUISize::RegisterScriptClass(Script::Interface& scriptInterface)
scriptInterface.DefineCustomObjectType(&JSI_GUISize::JSI_class, JSI_GUISize::construct, 0, nullptr, JSI_GUISize::JSI_methods, nullptr, nullptr);
}
bool JSI_GUISize::construct(JSContext* cx, uint argc, JS::Value* vp)
bool JSI_GUISize::construct(JSContext* cx, unsigned int argc, JS::Value* vp)
{
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
Script::Request rq(cx);
@@ -117,7 +117,7 @@ std::string JSI_GUISize::ToPercentString(double pix, double per)
return fmt::format("{}%{:+}", per, pix);
}
bool JSI_GUISize::toString(JSContext* cx, uint argc, JS::Value* vp)
bool JSI_GUISize::toString(JSContext* cx, unsigned int argc, JS::Value* vp)
{
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
std::string buffer;