summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/dialog/backingcomp.cxx2
-rw-r--r--sfx2/source/notebookbar/NotebookbarTabControl.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/dialog/backingcomp.cxx b/sfx2/source/dialog/backingcomp.cxx
index a810f0be9fda..dea33fa1698f 100644
--- a/sfx2/source/dialog/backingcomp.cxx
+++ b/sfx2/source/dialog/backingcomp.cxx
@@ -395,7 +395,7 @@ void SAL_CALL BackingComp::attachFrame( /*IN*/ const css::uno::Reference< css::f
pBack->setOwningFrame( m_xFrame );
// set NotebookBar
- SystemWindow* pSysWindow = static_cast<SystemWindow*>(pParent);
+ SystemWindow* pSysWindow = pParent;
if (pSysWindow)
{
//sfx2::SfxNotebookBar::StateMethod(pSysWindow, m_xFrame, "sfx/ui/notebookbar.ui");
diff --git a/sfx2/source/notebookbar/NotebookbarTabControl.cxx b/sfx2/source/notebookbar/NotebookbarTabControl.cxx
index f9dd28131e11..de3eaf04ad6b 100644
--- a/sfx2/source/notebookbar/NotebookbarTabControl.cxx
+++ b/sfx2/source/notebookbar/NotebookbarTabControl.cxx
@@ -361,7 +361,7 @@ Size NotebookbarTabControl::calculateRequisition() const
for (int i = 0; i < GetPageCount(); i++)
{
- vcl::Window* pChild = static_cast<vcl::Window*>(GetTabPage(TabControl::GetPageId(i)));
+ vcl::Window* pChild = GetTabPage(TabControl::GetPageId(i));
if (pChild)
{