From fe4cc1961888db364bbc70cfe0e7a15ec27a5c5b Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Thu, 6 Jul 2023 19:26:28 +1000 Subject: Change pure string format calls to use fmt::to_string --- source/frontend/StarCraftingInterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/frontend/StarCraftingInterface.cpp') diff --git a/source/frontend/StarCraftingInterface.cpp b/source/frontend/StarCraftingInterface.cpp index f3cedf5..df0100a 100644 --- a/source/frontend/StarCraftingInterface.cpp +++ b/source/frontend/StarCraftingInterface.cpp @@ -294,7 +294,7 @@ void CraftingPane::update() { updateCraftButtons(); } - setLabel("lblPlayerMoney", strf("{}", (int)m_player->currency("money"))); + setLabel("lblPlayerMoney", toString((int)m_player->currency("money"))); Pane::update(); } @@ -421,7 +421,7 @@ void CraftingPane::setupWidget(WidgetPtr const& widget, ItemRecipe const& recipe } if (price > 0) { - widget->setLabel("priceLabel", strf("{}", price)); + widget->setLabel("priceLabel", toString(price)); if (auto icon = widget->fetchChild("moneyIcon")) icon->setVisibility(true); } else { -- cgit v1.2.3