summaryrefslogtreecommitdiff
path: root/recman.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'recman.cpp')
-rw-r--r--recman.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/recman.cpp b/recman.cpp
index caf1957..b303076 100644
--- a/recman.cpp
+++ b/recman.cpp
@@ -314,16 +314,12 @@ namespace vdrlive {
*/
bool RecordingsItemPtrCompare::ByAscendingDate(RecordingsItemPtr & first, RecordingsItemPtr & second)
{
- if (first->StartTime() < second->StartTime())
- return true;
- return false;
+ return (first->StartTime() < second->StartTime());
}
bool RecordingsItemPtrCompare::ByDescendingDate(RecordingsItemPtr & first, RecordingsItemPtr & second)
{
- if (first->StartTime() < second->StartTime())
- return false;
- return true;
+ return (first->StartTime() >= second->StartTime());
}
bool RecordingsItemPtrCompare::ByAscendingName(RecordingsItemPtr & first, RecordingsItemPtr & second)