From dd9c75862d84cf9dbb46afa7979a337343aa4799 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 11 May 2014 12:11:25 +0300 Subject: Add anonimous namespace in inventory. --- src/inventory.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/inventory.cpp') 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(), -- cgit v1.2.3-60-g2f50