From 144a7cab1a864ebc1df3c2f06346b812dff7f665 Mon Sep 17 00:00:00 2001 From: terkhen Date: Fri, 13 Aug 2010 14:24:47 +0000 Subject: (svn r20483) -Doc: RefitOption operators. --- src/vehicle_gui.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2