From deb669324805cd7cf0cf54806aff0f55ed2b36f9 Mon Sep 17 00:00:00 2001 From: Phenom Date: Tue, 15 Aug 2017 19:00:17 +0200 Subject: [PATCH] Fix CppCheck in idle.cpp /retroshare-gui/src/idle/idle.cpp:118: warning: Cppcheck(knownConditionTrueFalse): Condition 't>0' is always true --- retroshare-gui/src/idle/idle.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/retroshare-gui/src/idle/idle.cpp b/retroshare-gui/src/idle/idle.cpp index 5110a10b3..14ff41df3 100644 --- a/retroshare-gui/src/idle/idle.cpp +++ b/retroshare-gui/src/idle/idle.cpp @@ -115,9 +115,9 @@ int Idle::secondsIdle() d->startTime = beginIdle; } // beginIdle earlier than startTime? - else if(t > 0) { - // do nothing - } + //else if(t > 0) { //t is always > 0 + // // do nothing + //} // how long have we been idle? int idleTime = d->startTime.secsTo(QDateTime::currentDateTime());