summaryrefslogtreecommitdiffstats
path: root/sd/source/ui/tools/IdleDetection.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-25 19:10:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-26 11:01:43 +0200
commitb59b4a38b45e1bf158701355c8c70f1c59f3e112 (patch)
treee40ff4daa9acec5031a28453ad8686bd6267b024 /sd/source/ui/tools/IdleDetection.cxx
parentupdate constantfunction loplugin (diff)
downloadcore-b59b4a38b45e1bf158701355c8c70f1c59f3e112.tar.gz
core-b59b4a38b45e1bf158701355c8c70f1c59f3e112.zip
loplugin:oncevar in sd
Change-Id: I56649b4df8c517f152ed4e9132985bbef22f8634 Reviewed-on: https://gerrit.libreoffice.org/39241 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/tools/IdleDetection.cxx')
-rw-r--r--sd/source/ui/tools/IdleDetection.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sd/source/ui/tools/IdleDetection.cxx b/sd/source/ui/tools/IdleDetection.cxx
index b2e31e93270c..e2e7cb294fe8 100644
--- a/sd/source/ui/tools/IdleDetection.cxx
+++ b/sd/source/ui/tools/IdleDetection.cxx
@@ -53,11 +53,9 @@ IdleState IdleDetection::CheckSlideShowRunning()
{
IdleState eResult (IdleState::Idle);
- bool bIsSlideShowShowing = false;
-
// Iterate over all view frames.
for (SfxViewFrame* pViewFrame = SfxViewFrame::GetFirst();
- pViewFrame!=nullptr && !bIsSlideShowShowing;
+ pViewFrame!=nullptr;
pViewFrame = SfxViewFrame::GetNext(*pViewFrame))
{
// Ignore the current frame when it does not exist, is not valid, or