summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-07 11:17:14 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-07 11:32:46 +0200
commit687bba75dadf94b06d0e5d2888e7d312ed668a53 (patch)
tree0d7b89b60a4f2aa6c6cd40acf738a78661a35a24 /framework
parent243fbdf426bcca9ff13053ee179bfe3cc44eb2c6 (diff)
clang-analyzer-deadcode.DeadStores
Change-Id: I2a500b3f376c2dfa073eb7c26978b949412d4dd8
Diffstat (limited to 'framework')
-rw-r--r--framework/source/tabwin/tabwindow.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/framework/source/tabwin/tabwindow.cxx b/framework/source/tabwin/tabwindow.cxx
index fedbd743227a..584112614f78 100644
--- a/framework/source/tabwin/tabwindow.cxx
+++ b/framework/source/tabwin/tabwindow.cxx
@@ -606,15 +606,11 @@ throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException, std::ex
TabControl* pTabControl = impl_GetTabControl( m_xTabControlWindow );
if ( pTabControl )
{
- sal_uInt16 nCurTabId = pTabControl->GetCurPageId();
sal_uInt16 nPos = pTabControl->GetPagePos( sal_uInt16( ID ));
if ( nPos == TAB_PAGE_NOTFOUND )
throw css::lang::IndexOutOfBoundsException();
- else
- {
- pTabControl->RemovePage( sal_uInt16( ID ));
- nCurTabId = pTabControl->GetCurPageId();
- }
+ pTabControl->RemovePage( sal_uInt16( ID ));
+ sal_uInt16 nCurTabId = pTabControl->GetCurPageId();
aLock.clear();
/* SAFE AREA ----------------------------------------------------------------------------------------------- */