summaryrefslogtreecommitdiff
path: root/src/inventory.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-11 12:11:25 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-11 12:11:25 +0300
commitdd9c75862d84cf9dbb46afa7979a337343aa4799 (patch)
tree8fa61ad0f5dff0b542864e4aafd727581d31538a /src/inventory.cpp
parent81e2cccfde65ccf7588067bd3896fd5172b5079d (diff)
downloadManaVerse-dd9c75862d84cf9dbb46afa7979a337343aa4799.tar.gz
ManaVerse-dd9c75862d84cf9dbb46afa7979a337343aa4799.tar.bz2
ManaVerse-dd9c75862d84cf9dbb46afa7979a337343aa4799.tar.xz
ManaVerse-dd9c75862d84cf9dbb46afa7979a337343aa4799.zip
Add anonimous namespace in inventory.
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp15
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(),