diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 01:20:48 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 01:20:48 +0000 |
commit | 78ab0ec914d3c5a97f162905afb3dede53f8b9ed (patch) | |
tree | 53e386c28d5621535c76c35c20f28b7dd6235ee3 /src/gui/trade.h | |
parent | 3bd2abeeffe9fb9b23293975b159ee2ddc868e5b (diff) | |
download | mana-78ab0ec914d3c5a97f162905afb3dede53f8b9ed.tar.gz mana-78ab0ec914d3c5a97f162905afb3dede53f8b9ed.tar.bz2 mana-78ab0ec914d3c5a97f162905afb3dede53f8b9ed.tar.xz mana-78ab0ec914d3c5a97f162905afb3dede53f8b9ed.zip |
Use std::auto_ptr in some places.
Diffstat (limited to 'src/gui/trade.h')
-rw-r--r-- | src/gui/trade.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/gui/trade.h b/src/gui/trade.h index d95cd9ce..3d6eef53 100644 --- a/src/gui/trade.h +++ b/src/gui/trade.h @@ -24,6 +24,8 @@ #ifndef _TMW_TRADE_H #define _TMW_TRADE_H +#include <memory> + #include <guichan/actionlistener.hpp> #include "window.h" @@ -110,13 +112,16 @@ class TradeWindow : public Window, gcn::ActionListener */ void action(const std::string& eventId); - Inventory *myInventory; - Inventory *partnerInventory; + private: + Network *mNetwork; + + typedef std::auto_ptr<Inventory> InventoryPtr; + InventoryPtr myInventory; + InventoryPtr partnerInventory; + ItemContainer *myItemContainer; ItemContainer *partnerItemContainer; - private: - Network *mNetwork; gcn::Label *itemNameLabel; gcn::Label *itemDescriptionLabel; gcn::Label *moneyLabel; |