diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2006-03-19 20:43:10 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2006-03-19 20:43:10 +0000 |
commit | 654d24e74c56d240b8d622840c135e22a029636d (patch) | |
tree | 5eb8b94f7832bdbb6d21c7ded6e6da6b5f8f3464 /src/gui/inventorywindow.cpp | |
parent | 3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6 (diff) | |
download | mana-654d24e74c56d240b8d622840c135e22a029636d.tar.gz mana-654d24e74c56d240b8d622840c135e22a029636d.tar.bz2 mana-654d24e74c56d240b8d622840c135e22a029636d.tar.xz mana-654d24e74c56d240b8d622840c135e22a029636d.zip |
Unreverted latest change by Doener due to my lack of proper communication abilities.
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r-- | src/gui/inventorywindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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 <string> -#include <sstream> #include <guichan/mouseinput.hpp> @@ -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(); } |