Update behavior of "order" attribute for command arguments

fixes #6718

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
This commit is contained in:
Jason Young 2014-07-14 11:12:37 -04:00 committed by Gunnar Beutner
parent c921304dc8
commit fcdd5d3ea5
2 changed files with 2 additions and 10 deletions

View File

@ -4,6 +4,7 @@ Carlos Cesario <carloscesario@gmail.com>
Gerd von Egidy <gerd@egidy.de>
Gunnar Beutner <gunnar.beutner@netways.de>
Jan Wagner <waja@cyconet.org>
Jason Young <jyoung15@gmail.com>
Johannes Meyer <johannes.meyer@netways.de>
Marcus van Dam <marcus@marcusvandam.nl>
Markus Frosch <markus@lazyfrosch.de>

View File

@ -46,16 +46,7 @@ struct CommandArgument
bool operator<(const CommandArgument& rhs) const
{
return GetNormalizedOrder() < rhs.GetNormalizedOrder();
}
private:
int GetNormalizedOrder(void) const
{
if (Order == 0)
return 0;
else
return -(1 / Order);
return Order < rhs.Order;
}
};