mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-02 10:35:15 -05:00
Fix CppCheck in idle.cpp
/retroshare-gui/src/idle/idle.cpp:118: warning: Cppcheck(knownConditionTrueFalse): Condition 't>0' is always true
This commit is contained in:
parent
589e61ff67
commit
deb6693248
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user