diff --git a/AUTHORS b/AUTHORS index 9b52eb4b0..475f903b5 100644 --- a/AUTHORS +++ b/AUTHORS @@ -4,6 +4,7 @@ Carlos Cesario Gerd von Egidy Gunnar Beutner Jan Wagner +Jason Young Johannes Meyer Marcus van Dam Markus Frosch diff --git a/lib/icinga/pluginutility.cpp b/lib/icinga/pluginutility.cpp index c651b60bd..77f7cc7a7 100644 --- a/lib/icinga/pluginutility.cpp +++ b/lib/icinga/pluginutility.cpp @@ -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; } };