aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJohannes Schickel2008-04-05 02:40:28 +0000
committerJohannes Schickel2008-04-05 02:40:28 +0000
commitdd8676877e665c405d8d56f52d5fbeea62eb1cc1 (patch)
tree1552e9c7ac37e32915058ec34c45b4db0d2c5a9a /common
parentc1319f8034a6c66caaa21fbf1a16f68e637457e0 (diff)
downloadscummvm-rg350-dd8676877e665c405d8d56f52d5fbeea62eb1cc1.tar.gz
scummvm-rg350-dd8676877e665c405d8d56f52d5fbeea62eb1cc1.tar.bz2
scummvm-rg350-dd8676877e665c405d8d56f52d5fbeea62eb1cc1.zip
- cleanup
- sort savefiles in kyra from newest -> oldest svn-id: r31397
Diffstat (limited to 'common')
-rw-r--r--common/func.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/common/func.h b/common/func.h
index c262c149c6..cff4e2d304 100644
--- a/common/func.h
+++ b/common/func.h
@@ -44,12 +44,17 @@ struct BinaryFunction {
template<class T>
struct EqualTo : public BinaryFunction<T, T, bool> {
- bool operator()(const T& x, const T& y) const { return x == y; }
+ bool operator()(const T &x, const T &y) const { return x == y; }
};
template<class T>
struct Less : public BinaryFunction<T, T, bool> {
- bool operator()(const T& x, const T& y) const { return x < y; }
+ bool operator()(const T &x, const T &y) const { return x < y; }
+};
+
+template<class T>
+struct Greater : public BinaryFunction<T, T, bool> {
+ bool operator()(const T &x, const T &y) const { return x > y; }
};
template<class Op>