summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-06-05 22:42:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-06 08:25:21 +0200
commit16ce815df3c782fecb56f3112169189d956a200e (patch)
treebe27706348545dd5df63ded316964c75db60c2d7 /sdext
parente718817f0efc01c440271cc709c8e4eb28ff5c0d (diff)
cppcheck: knownConditionTrueFalse
Change-Id: I231113eaf3117e13ed18de906e3787643abe9335 Reviewed-on: https://gerrit.libreoffice.org/38423 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/presenter/PresenterScreen.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sdext/source/presenter/PresenterScreen.cxx b/sdext/source/presenter/PresenterScreen.cxx
index f385dfbc2114..bf10764fff4a 100644
--- a/sdext/source/presenter/PresenterScreen.cxx
+++ b/sdext/source/presenter/PresenterScreen.cxx
@@ -465,8 +465,7 @@ sal_Int32 PresenterScreen::GetPresenterScreenNumber (
{
// A display number value of 0 indicates the primary screen.
// Find out which screen number that is.
- if (nDisplayNumber <= 0)
- nScreenNumber = Application::GetDisplayExternalScreen();
+ nScreenNumber = Application::GetDisplayExternalScreen();
}
// We still have to determine the number of screens to decide