summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-08-27 08:17:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-08-27 08:26:35 +0100
commit0a96482941d510043bfef235ab5e1bf18a45fba7 (patch)
tree4c5a6fe6aee721da709a1079c8528ae5e5aa5ab9 /sfx2
parent2d791401f4e32a260b05b7e21cbfd60baa493b32 (diff)
coverity#1320470 Unchecked dynamic_cast
Change-Id: I9abe56c88171629b68d72119f1359d750675d08a
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/taskpane.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/sfx2/source/dialog/taskpane.cxx b/sfx2/source/dialog/taskpane.cxx
index 43c8cf7d323a..814df2accdd5 100644
--- a/sfx2/source/dialog/taskpane.cxx
+++ b/sfx2/source/dialog/taskpane.cxx
@@ -253,16 +253,17 @@ namespace sfx2
WB_STDDOCKWIN | WB_CLIPCHILDREN | WB_SIZEABLE | WB_3DLOOK | WB_ROLLABLE));
SetAlignment(SfxChildAlignment::RIGHT);
- GetWindow()->SetHelpId( HID_TASKPANE_WINDOW );
- GetWindow()->SetOutputSizePixel( Size( 300, 450 ) );
+ vcl::Window& rWindow = *GetWindow();
- dynamic_cast<SfxDockingWindow*>(GetWindow())->Initialize(i_pInfo);
+ rWindow.SetHelpId( HID_TASKPANE_WINDOW );
+ rWindow.SetOutputSizePixel( Size( 300, 450 ) );
+
+ dynamic_cast<SfxDockingWindow&>(rWindow).Initialize(i_pInfo);
SetHideNotDelete( true );
- GetWindow()->Show();
+ rWindow.Show();
}
-
void TaskPaneWrapper::ActivateToolPanel( const OUString& i_rPanelURL )
{
TaskPaneDockingWindow* pDockingWindow = dynamic_cast< TaskPaneDockingWindow* >( GetWindow() );