Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use < 0 rather than == -1 as it's a little clearer once operator==() …

…is implemented correctly
  • Loading branch information...
commit 19789cd57738fa269eab192e4b0e3bf06aef0ffd 1 parent f6ec198
Jonathan Marshall authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/addons/AddonVersion.cpp
View
4 xbmc/addons/AddonVersion.cpp
@@ -112,9 +112,9 @@ namespace ADDON
int result = CompareComponent(Upstream(), other.Upstream());
if (result)
- return (-1 == result);
+ return (result < 0);
- return (-1 == CompareComponent(Revision(), other.Revision()));
+ return (CompareComponent(Revision(), other.Revision()) < 0);
}
CStdString AddonVersion::Print() const
Please sign in to comment.
Something went wrong with that request. Please try again.