summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-08-13 14:24:47 +0000
committerterkhen <terkhen@openttd.org>2010-08-13 14:24:47 +0000
commit144a7cab1a864ebc1df3c2f06346b812dff7f665 (patch)
treef443aeaf3d62de2f135fac29d9562daae627ca64 /src
parent89b2b9370a877526e2b637b1cd39d6f374dbabdb (diff)
downloadopenttd-144a7cab1a864ebc1df3c2f06346b812dff7f665.tar.xz
(svn r20483) -Doc: RefitOption operators.
Diffstat (limited to 'src')
-rw-r--r--src/vehicle_gui.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index d8ada1d62..ddebfeb48 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -284,11 +284,21 @@ struct RefitOption {
uint16 value; ///< GRF-local String to display for the cargo
EngineID engine; ///< Engine for which to resolve #value
+ /**
+ * Inequality operator for #RefitOption.
+ * @param other Compare to this #RefitOption.
+ * @return True if both #RefitOption are different.
+ */
FORCEINLINE bool operator != (const RefitOption &other) const
{
return other.cargo != this->cargo || other.value != this->value;
}
+ /**
+ * Equality operator for #RefitOption.
+ * @param other Compare to this #RefitOption.
+ * @return True if both #RefitOption are equal.
+ */
FORCEINLINE bool operator == (const RefitOption &other) const
{
return other.cargo == this->cargo && other.value == this->value;