Changeset - r15798:f2e2f0c75969
[Not reviewed]
master
0 1 0
terkhen - 14 years ago 2010-08-13 14:24:47
terkhen@openttd.org
(svn r20483) -Doc: RefitOption operators.
1 file changed with 10 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/vehicle_gui.cpp
Show inline comments
 
@@ -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;
0 comments (0 inline, 0 general)