From 332983c97b7a729c4dc5f19aa9ee4a22c420f7d8 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 27 Jun 2023 20:23:44 +1000 Subject: The Formatting String Catastrophe --- source/frontend/StarScriptPane.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/frontend/StarScriptPane.cpp') diff --git a/source/frontend/StarScriptPane.cpp b/source/frontend/StarScriptPane.cpp index 87c1353..e2e8a33 100644 --- a/source/frontend/StarScriptPane.cpp +++ b/source/frontend/StarScriptPane.cpp @@ -179,7 +179,7 @@ LuaCallbacks ScriptPane::makePaneCallbacks() { }); callbacks.registerCallback("addWidget", [this](Json const& newWidgetConfig, Maybe const& newWidgetName) { - String name = newWidgetName.value(strf("%d", Random::randu64())); + String name = newWidgetName.value(strf("{}", Random::randu64())); WidgetPtr newWidget = m_reader.makeSingle(name, newWidgetConfig); this->addChild(name, newWidget); }); -- cgit v1.2.3