diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-11 12:11:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-11 12:11:25 +0300 |
commit | dd9c75862d84cf9dbb46afa7979a337343aa4799 (patch) | |
tree | 8fa61ad0f5dff0b542864e4aafd727581d31538a /src/inventory.cpp | |
parent | 81e2cccfde65ccf7588067bd3896fd5172b5079d (diff) | |
download | mv-dd9c75862d84cf9dbb46afa7979a337343aa4799.tar.gz mv-dd9c75862d84cf9dbb46afa7979a337343aa4799.tar.bz2 mv-dd9c75862d84cf9dbb46afa7979a337343aa4799.tar.xz mv-dd9c75862d84cf9dbb46afa7979a337343aa4799.zip |
Add anonimous namespace in inventory.
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r-- | src/inventory.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp index a7adc2289..18ef19409 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -39,14 +39,17 @@ #include "debug.h" -struct SlotUsed final +namespace { - bool operator()(const Item *const item) const + struct SlotUsed final { - return item && item->mId >= 0 && item->mQuantity > 0; - } - typedef Item *argument_type; -}; + bool operator()(const Item *const item) const + { + return item && item->mId >= 0 && item->mQuantity > 0; + } + typedef Item *argument_type; + }; +} // namespace Inventory::Inventory(const int type, const int size1) : mInventoryListeners(), |