changeset 15808:13b4bf99324d draft

(svn r20483) -Doc: RefitOption operators.
author terkhen <terkhen@openttd.org>
date Fri, 13 Aug 2010 14:24:47 +0000
parents 9561d91e0869
children 7cbc9ec47906
files src/vehicle_gui.cpp
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -284,11 +284,21 @@
 	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;