summaryrefslogtreecommitdiff
path: root/framework/source/uifactory/statusbarfactory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/uifactory/statusbarfactory.cxx')
-rw-r--r--framework/source/uifactory/statusbarfactory.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/framework/source/uifactory/statusbarfactory.cxx b/framework/source/uifactory/statusbarfactory.cxx
index 0c59adea073b..2914dc4cc430 100644
--- a/framework/source/uifactory/statusbarfactory.cxx
+++ b/framework/source/uifactory/statusbarfactory.cxx
@@ -66,8 +66,7 @@ Reference< XUIElement > SAL_CALL StatusBarFactory::createUIElement(
const OUString& ResourceURL,
const Sequence< PropertyValue >& Args )
{
- Reference< css::ui::XUIElement > xStatusBar(
- static_cast<OWeakObject *>(new StatusBarWrapper(m_xContext)), UNO_QUERY);
+ Reference< css::ui::XUIElement > xStatusBar = new StatusBarWrapper(m_xContext);
MenuBarFactory::CreateUIElement(ResourceURL, Args, u"private:resource/statusbar/", xStatusBar, m_xContext);
return xStatusBar;
}