diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-11-25 01:49:47 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-11-25 01:49:47 +0100 |
commit | 91fd9441dad8b4b7eb680268e2fc8e03a0b37078 (patch) | |
tree | 3ea7b839adc1da7d4a81bb658a97e8cd122359b9 /common/action.cpp | |
parent | bdf3e3b9c91dc1531a44b1cabaaf598f16d377e8 (diff) |
Action::operator==() should take a reference.
Diffstat (limited to 'common/action.cpp')
-rw-r--r-- | common/action.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/action.cpp b/common/action.cpp index 467df4e..188535e 100644 --- a/common/action.cpp +++ b/common/action.cpp @@ -1,7 +1,7 @@ #include "action.h" #include <algorithm> -bool Action::operator==(Action other) { +bool Action::operator==(const Action& other) { return type == other.type && target == other.target; } |