diff options
Diffstat (limited to 'framework/source')
-rw-r--r-- | framework/source/lomenubar/FrameHelper.cxx | 4 | ||||
-rw-r--r-- | framework/source/services/modulemanager.cxx | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/framework/source/lomenubar/FrameHelper.cxx b/framework/source/lomenubar/FrameHelper.cxx index b617404446af..e8fd68fb24ea 100644 --- a/framework/source/lomenubar/FrameHelper.cxx +++ b/framework/source/lomenubar/FrameHelper.cxx @@ -49,7 +49,7 @@ #include <com/sun/star/frame/XDispatchProvider.hpp> #include <com/sun/star/frame/XLayoutManager.hpp> #include <com/sun/star/frame/XModel.hpp> -#include <com/sun/star/frame/XModuleManager.hpp> +#include <com/sun/star/frame/ModuleManager.hpp> #include <com/sun/star/frame/XPopupMenuController.hpp> #include <com/sun/star/frame/FrameAction.hpp> #include <com/sun/star/frame/FrameActionEvent.hpp> @@ -268,7 +268,7 @@ FrameHelper::FrameHelper(const Reference< XMultiServiceFactory >& rServiceManag , m_pDispatchRegistry(new framework::lomenubar::DispatchRegistry(m_xStatusListener)) , m_xMSF(rServiceManager) , m_xTrans(util::URLTransformer::create(comphelper::ComponentContext(m_xMSF).getUNOContext())) - , m_xMM(m_xMSF->createInstance(OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.frame.ModuleManager"))),UNO_QUERY) + , m_xMM(frame::ModuleManager(comphelper::ComponentContext(m_xMSF).getUNOContext()),UNO_QUERY) , m_xPCF(m_xMSF->createInstance(OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.frame.PopupMenuControllerFactory"))), UNO_QUERY) , m_xFrame(xFrame) , m_xdp(xFrame, UNO_QUERY) diff --git a/framework/source/services/modulemanager.cxx b/framework/source/services/modulemanager.cxx index d5d4522eba90..04158c0532e9 100644 --- a/framework/source/services/modulemanager.cxx +++ b/framework/source/services/modulemanager.cxx @@ -180,7 +180,7 @@ void SAL_CALL ModuleManager::replaceByName(const ::rtl::OUString& sName , { throw css::lang::IllegalArgumentException( ::rtl::OUString("No properties given to replace part of module."), - static_cast< css::container::XNameAccess* >(this), + static_cast< cppu::OWeakObject * >(this), 2); } @@ -207,7 +207,7 @@ void SAL_CALL ModuleManager::replaceByName(const ::rtl::OUString& sName , { throw css::uno::RuntimeException( ::rtl::OUString("Was not able to get write access to the requested module entry inside configuration."), - static_cast< css::container::XNameAccess* >(this)); + static_cast< cppu::OWeakObject * >(this)); } ::comphelper::SequenceAsHashMap::const_iterator pProp; @@ -239,7 +239,7 @@ css::uno::Any SAL_CALL ModuleManager::getByName(const ::rtl::OUString& sName) { throw css::uno::RuntimeException( ::rtl::OUString("Was not able to get write access to the requested module entry inside configuration."), - static_cast< css::container::XNameAccess* >(this)); + static_cast< cppu::OWeakObject * >(this)); } // convert it to seq< PropertyValue > |