Commit e0a069ed authored by Jesus Fernandez's avatar Jesus Fernandez Committed by Jesus Fernandez
Browse files

Remove unreachable code


Actions intended to be performed by the unreachable code will never occur.

In CameraBinLocks::lockStatus(QCamera::LockType): Code block
is unreachable because of the syntactic structure of the code (CWE-561)

Coverity-Id: 188406
Change-Id: I55a7ef8e87673519ff4f1ad5677054b34bf66d17
Reviewed-by: default avatarChristian Stromme <christian.stromme@qt.io>
parent 306e8511
No related merge requests found
Showing with 0 additions and 2 deletions
......@@ -102,8 +102,6 @@ QCamera::LockStatus CameraBinLocks::lockStatus(QCamera::LockType lock) const
default:
return QCamera::Unlocked;
}
return lock == QCamera::LockFocus ? m_focus->focusStatus() : QCamera::Unlocked;
}
void CameraBinLocks::searchAndLock(QCamera::LockTypes locks)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment