diff options
author | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2009-04-19 22:42:44 +0200 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2009-04-19 22:42:44 +0200 |
commit | 007c4fbed9c0705b3e846ea48f9738c502fbc279 (patch) | |
tree | 754923246a5eeae16a0cb4e995e07af74ca512ba | |
parent | 0144f655feb4dd867a17892dc97655b4f3e03bb7 (diff) | |
download | vdr-plugin-live-007c4fbed9c0705b3e846ea48f9738c502fbc279.tar.gz vdr-plugin-live-007c4fbed9c0705b3e846ea48f9738c502fbc279.tar.bz2 |
Added a patch suggested by jowi24 from the bug tracker. See bug #511.
-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; |