diff options
author | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2009-08-27 00:19:01 +0200 |
---|---|---|
committer | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2009-08-27 00:19:01 +0200 |
commit | ac835e1d5366908e0c3a706ed3c9298041c4bad9 (patch) | |
tree | dc26c51cf47f411ac8d0a0b28b845c5c5886b680 /livefeatures.cpp | |
parent | 8c131a1710f1b8c83c09e4f247cc0ba44c0ec4bb (diff) | |
parent | 854fa820e345ed890e4a7a9a32b14add68fc642c (diff) | |
download | vdr-plugin-live-ac835e1d5366908e0c3a706ed3c9298041c4bad9.tar.gz vdr-plugin-live-ac835e1d5366908e0c3a706ed3c9298041c4bad9.tar.bz2 |
Merge commit 'tadi/master'
Conflicts:
po/de_DE.po
Diffstat (limited to 'livefeatures.cpp')
-rw-r--r-- | livefeatures.cpp | 7 |
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; |