summaryrefslogtreecommitdiff
path: root/src/plugins/gstreamer
diff options
context:
space:
mode:
authorJesus Fernandez <jesus.fernandez@qt.io>2018-03-19 12:05:57 +0100
committerJesus Fernandez <Jesus.Fernandez@qt.io>2018-03-20 12:17:03 +0000
commite0a069edc2d79b69fd187ffbe03a8388a612b3ff (patch)
tree60bc74a55fea68ee82e634d50801c19092f77d43 /src/plugins/gstreamer
parent306e8511602ac3c23778d6aef994269d17d3145c (diff)
downloadqtmultimedia-e0a069edc2d79b69fd187ffbe03a8388a612b3ff.tar.gz
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: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'src/plugins/gstreamer')
-rw-r--r--src/plugins/gstreamer/camerabin/camerabinlocks.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/gstreamer/camerabin/camerabinlocks.cpp b/src/plugins/gstreamer/camerabin/camerabinlocks.cpp
index 2ccc1b0bc..89be2ac5d 100644
--- a/src/plugins/gstreamer/camerabin/camerabinlocks.cpp
+++ b/src/plugins/gstreamer/camerabin/camerabinlocks.cpp
@@ -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)