summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--livefeatures.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/livefeatures.cpp b/livefeatures.cpp
index 5b34306..94aa4cc 100644
--- a/livefeatures.cpp
+++ b/livefeatures.cpp
@@ -9,7 +9,7 @@ SplitVersion::SplitVersion( string version )
: m_version( 0 )
{
static const int factors[] = { 100000000, 1000000, 1000, 1 };
-
+
size_t pos = version.find('-');
if ( pos != string::npos ) {
m_suffix = version.substr( pos + 1 );
@@ -24,8 +24,9 @@ SplitVersion::SplitVersion( string version )
bool SplitVersion::operator<( const SplitVersion& right ) const
{
if ( m_version == right.m_version ) {
- if ( m_suffix.empty() ) return false;
- if ( right.m_suffix.empty() ) return true;
+ if (right.m_suffix.empty()) {
+ return false;
+ }
return m_suffix < right.m_suffix;
}
return m_version < right.m_version;