diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-06 19:26:28 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-06 19:26:28 +1000 |
commit | fe4cc1961888db364bbc70cfe0e7a15ec27a5c5b (patch) | |
tree | db5357973b2e2ef368b6c1f81a701b8ea75b9a9b /source/frontend/StarCraftingInterface.cpp | |
parent | f75d1f0b5a78bfce56bde4fe57b8d1193a340e74 (diff) |
Change pure string format calls to use fmt::to_string
Diffstat (limited to 'source/frontend/StarCraftingInterface.cpp')
-rw-r--r-- | source/frontend/StarCraftingInterface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<ImageWidget>("moneyIcon")) icon->setVisibility(true); } else { |