mirror of https://github.com/Icinga/icinga2.git
Update behavior of "order" attribute for command arguments
fixes #6718 Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
This commit is contained in:
parent
c921304dc8
commit
fcdd5d3ea5
1
AUTHORS
1
AUTHORS
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue