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/StarItemTooltip.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/frontend/StarItemTooltip.cpp') diff --git a/source/frontend/StarItemTooltip.cpp b/source/frontend/StarItemTooltip.cpp index 46a2d85..8d7ee29 100644 --- a/source/frontend/StarItemTooltip.cpp +++ b/source/frontend/StarItemTooltip.cpp @@ -81,7 +81,7 @@ void ItemTooltipBuilder::buildItemDescriptionInner( container->fetchChild("icon")->setItem(item); container->setLabel("nameLabel", item->name()); - container->setLabel("countLabel", strf("{}", item->count())); + container->setLabel("countLabel", toString(item->count())); container->setLabel("rarityLabel", RarityNames.getRight(item->rarity()).titleCase()); @@ -90,8 +90,8 @@ void ItemTooltipBuilder::buildItemDescriptionInner( else container->setLabel("handednessLabel", "1-Handed"); - container->setLabel("countLabel", strf("{}", item->instanceValue("fuelAmount", 0).toUInt() * item->count())); - container->setLabel("priceLabel", strf("{}", (int)item->price())); + container->setLabel("countLabel", toString(item->instanceValue("fuelAmount", 0).toUInt() * item->count())); + container->setLabel("priceLabel", toString((int)item->price())); if (auto objectItem = as(item)) { try { -- cgit v1.2.3