diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-02-05 20:36:46 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-02-05 20:36:46 +0000 |
commit | 57598da9fa348f09d681b334c8196feb7f23cdb9 (patch) | |
tree | cc5a4a9ad869bac39182d600871a3229e3b8702b /sd/source | |
parent | c2390fd3fff3853e7d71738da0d266a2399bf684 (diff) |
coverity#1351878 'Constant' variable guards dead code
since
commit 2503a1e99df463aef1bf87c94b7b4a8ee3554efe
Author: Bryan Quigley <gquigs@gmail.com>
Date: Wed Jan 27 12:19:28 2016 -0500
tdf#96414 Remove showing navigator during slideshow
Change-Id: If3949c2527334107d1ca8af2bee50ec4b7b2947a
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/view/drviewsd.cxx | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sd/source/ui/view/drviewsd.cxx b/sd/source/ui/view/drviewsd.cxx index 572378f09aa7..4ba0ab3bb834 100644 --- a/sd/source/ui/view/drviewsd.cxx +++ b/sd/source/ui/view/drviewsd.cxx @@ -156,7 +156,6 @@ void DrawViewShell::GetNavigatorWinState( SfxItemSet& rSet ) sal_uInt16 nCurrentPage = 0; sal_uInt16 nFirstPage = 0; sal_uInt16 nLastPage; - bool bEndless = false; OUString aPageName; nState |= NAVTLB_UPDATE; @@ -172,11 +171,7 @@ void DrawViewShell::GetNavigatorWinState( SfxItemSet& rSet ) // first page / previous page if( nCurrentPage == nFirstPage ) { - nState |= NAVBTN_FIRST_DISABLED; - if( !bEndless ) - nState |= NAVBTN_PREV_DISABLED; - else - nState |= NAVBTN_PREV_ENABLED; + nState |= NAVBTN_FIRST_DISABLED | NAVBTN_PREV_DISABLED; } else { @@ -186,11 +181,7 @@ void DrawViewShell::GetNavigatorWinState( SfxItemSet& rSet ) // last page / next page if( nCurrentPage == nLastPage ) { - nState |= NAVBTN_LAST_DISABLED; - if( !bEndless ) - nState |= NAVBTN_NEXT_DISABLED; - else - nState |= NAVBTN_NEXT_ENABLED; + nState |= NAVBTN_LAST_DISABLED | NAVBTN_NEXT_DISABLED; } else { |