Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarMerchantInterface.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-06 19:26:28 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-06 19:26:28 +1000
commitfe4cc1961888db364bbc70cfe0e7a15ec27a5c5b (patch)
treedb5357973b2e2ef368b6c1f81a701b8ea75b9a9b /source/frontend/StarMerchantInterface.cpp
parentf75d1f0b5a78bfce56bde4fe57b8d1193a340e74 (diff)
Change pure string format calls to use fmt::to_string
Diffstat (limited to 'source/frontend/StarMerchantInterface.cpp')
-rw-r--r--source/frontend/StarMerchantInterface.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/frontend/StarMerchantInterface.cpp b/source/frontend/StarMerchantInterface.cpp
index 4db2771..c4b1047 100644
--- a/source/frontend/StarMerchantInterface.cpp
+++ b/source/frontend/StarMerchantInterface.cpp
@@ -242,7 +242,7 @@ void MerchantPane::setupWidget(WidgetPtr const& widget, Json const& itemConfig)
itemName->setText(name);
unsigned price = ceil(itemConfig.getInt("price", item->price()) * m_buyFactor);
- widget->setLabel("priceLabel", strf("{}", price));
+ widget->setLabel("priceLabel", toString(price));
widget->setData(price);
bool unavailable = price > m_player->currency("money");
@@ -287,7 +287,7 @@ void MerchantPane::updateBuyTotal() {
else
m_buyTotal = 0;
- m_buyTotalLabel->setText(strf("{}", m_buyTotal));
+ m_buyTotalLabel->setText(toString(m_buyTotal));
if (m_selectedIndex != NPos && m_buyCount > 0)
m_buyButton->enable();
@@ -332,7 +332,7 @@ void MerchantPane::updateSellTotal() {
if (item)
m_sellTotal += round(item->price() * m_sellFactor);
}
- m_sellTotalLabel->setText(strf("{}", m_sellTotal));
+ m_sellTotalLabel->setText(toString(m_sellTotal));
if (m_sellTotal > 0)
m_sellButton->enable();
else