From 4aec2fafb3c4049d8a6db66f35394c0d431e553d Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 29 Jul 2019 12:50:53 +0200 Subject: [PATCH] Simplyfied entry comparison in operator ==(). --- src/lib/sqlite.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/lib/sqlite.cpp b/src/lib/sqlite.cpp index 4f67741..2cfb5b4 100644 --- a/src/lib/sqlite.cpp +++ b/src/lib/sqlite.cpp @@ -65,12 +65,7 @@ namespace remwharead bool operator ==(const Database::entry &a, const Database::entry &b) { - if (a.datetime == b.datetime) - { - return true; - } - - return false; + return (a.datetime == b.datetime); } const string Database::entry::fulltext_oneline() const