From f789715a414bd1115401f93d11f09260f891956c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 23 Aug 2012 15:43:05 +0200 Subject: fdo#46808, Use factory methods for frame::DispatchHelper instances Change-Id: I7bdf16fc6d042e5ecd404c604a8b7c31c1ac7bc1 --- framework/source/lomenubar/FrameHelper.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'framework') diff --git a/framework/source/lomenubar/FrameHelper.cxx b/framework/source/lomenubar/FrameHelper.cxx index 12edf35d15fa..cd40491344bf 100644 --- a/framework/source/lomenubar/FrameHelper.cxx +++ b/framework/source/lomenubar/FrameHelper.cxx @@ -42,10 +42,10 @@ #include #include #include +#include #include #include #include -#include #include #include #include @@ -718,8 +718,7 @@ void FrameHelper::dispatchCommand (OUString command) { OUString target = OUString(RTL_CONSTASCII_USTRINGPARAM("")); - Reference < XDispatchHelper > xdh (m_xMSF->createInstance(OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.frame.DispatchHelper"))), - UNO_QUERY); + Reference < XDispatchHelper > xdh( DispatchHelper::create(comphelper::ComponentContext(m_xMSF).getUNOContext()) ); // This is a special case, we don't want the helper to be disconnected from the frame // when PrintPreview dettaches. See the frameAction method. -- cgit