From 654d24e74c56d240b8d622840c135e22a029636d Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Sun, 19 Mar 2006 20:43:10 +0000 Subject: Unreverted latest change by Doener due to my lack of proper communication abilities. --- src/gui/inventorywindow.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/inventorywindow.cpp') diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index 422d92af..8f672bc9 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -24,7 +24,6 @@ #include "inventorywindow.h" #include -#include #include @@ -41,6 +40,8 @@ #include "../resources/iteminfo.h" +#include "../utils/tostring.h" + InventoryWindow::InventoryWindow(): Window("Inventory") { @@ -88,10 +89,9 @@ void InventoryWindow::logic() updateButtons(); // Update weight information - std::stringstream tempstr; - tempstr << "Total Weight: " << player_node->mTotalWeight - << " - Maximum Weight: " << player_node->mMaxWeight; - mWeightLabel->setCaption(tempstr.str()); + mWeightLabel->setCaption( + "Total Weight: " + toString(player_node->mTotalWeight) + " - " + "Maximum Weight: " + toString(player_node->mMaxWeight)); mWeightLabel->adjustSize(); } -- cgit v1.2.3-70-g09d2