[Libreoffice-commits] core.git: sfx2/source
Caolán McNamara
caolanm at redhat.com
Thu Aug 27 00:27:09 PDT 2015
sfx2/source/dialog/taskpane.cxx | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
New commits:
commit 0a96482941d510043bfef235ab5e1bf18a45fba7
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Aug 27 08:17:20 2015 +0100
coverity#1320470 Unchecked dynamic_cast
Change-Id: I9abe56c88171629b68d72119f1359d750675d08a
diff --git a/sfx2/source/dialog/taskpane.cxx b/sfx2/source/dialog/taskpane.cxx
index 43c8cf7..814df2a 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() );
More information about the Libreoffice-commits
mailing list