summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-13 00:20:16 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-13 00:20:16 +0300
commit59b2d1d51e2722029ca8fe36941dff2f0b1e5982 (patch)
tree50de9942f39eb4299d2d06e38e4ae30699215e1b
parent46e467c06869373ae38ec0bc04d6157096738b80 (diff)
downloadmv-59b2d1d51e2722029ca8fe36941dff2f0b1e5982.tar.gz
mv-59b2d1d51e2722029ca8fe36941dff2f0b1e5982.tar.bz2
mv-59b2d1d51e2722029ca8fe36941dff2f0b1e5982.tar.xz
mv-59b2d1d51e2722029ca8fe36941dff2f0b1e5982.zip
remove depricated stl feature.
-rw-r--r--src/inventory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp
index 53cdeb34c..61500fb7a 100644
--- a/src/inventory.cpp
+++ b/src/inventory.cpp
@@ -38,12 +38,13 @@
#include "debug.h"
-struct SlotUsed final : public std::unary_function<Item*, bool>
+struct SlotUsed final
{
bool operator()(const Item *const item) const
{
return item && item->mId >= 0 && item->mQuantity > 0;
}
+ typedef Item *argument_type;
};
Inventory::Inventory(const int type, const int size1) :