summaryrefslogtreecommitdiff
path: root/framework/source/uifactory
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-06-25 08:43:20 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-25 17:10:43 +0200
commit533c6cb6bad6ef0432e8eebbfd4daf90ef71f3b4 (patch)
tree0575fd7acded0e19664352f44633cff93c3ab6b6 /framework/source/uifactory
parent96ff10449464ae9d869fe21dccf193a6eef670c1 (diff)
fixes for up-casting to Reference<XInterface>
Fix regressions introduced with 6a043e9c0acff20e1618ca8ec15c21d5d0fd0d37 "Use the new type-checking Reference constructor to reduce code noise" Change-Id: I85662856f21c810a7db497fe3b0e116f075b1687 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'framework/source/uifactory')
-rw-r--r--framework/source/uifactory/menubarfactory.cxx2
-rw-r--r--framework/source/uifactory/uielementfactorymanager.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/uifactory/menubarfactory.cxx b/framework/source/uifactory/menubarfactory.cxx
index 1a139c4f76ec..55afe317e5b6 100644
--- a/framework/source/uifactory/menubarfactory.cxx
+++ b/framework/source/uifactory/menubarfactory.cxx
@@ -118,7 +118,7 @@ void MenuBarFactory::CreateUIElement(const OUString& ResourceURL
{
Reference< ::com::sun::star::frame::XModuleManager2 > xModuleManager =
ModuleManager::create( _rxContext );
- OUString aModuleIdentifier = xModuleManager->identify( xFrame );
+ OUString aModuleIdentifier = xModuleManager->identify( Reference<XInterface>( xFrame, UNO_QUERY ) );
if ( !aModuleIdentifier.isEmpty() )
{
Reference< XModuleUIConfigurationManagerSupplier > xModuleCfgSupplier =
diff --git a/framework/source/uifactory/uielementfactorymanager.cxx b/framework/source/uifactory/uielementfactorymanager.cxx
index b18f82a43cf4..932b90b55f1d 100644
--- a/framework/source/uifactory/uielementfactorymanager.cxx
+++ b/framework/source/uifactory/uielementfactorymanager.cxx
@@ -453,7 +453,7 @@ throw ( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::l
{
OUString aModuleId;
if ( xFrame.is() && xManager.is() )
- aModuleId = xManager->identify( xFrame );
+ aModuleId = xManager->identify( Reference<XInterface>( xFrame, UNO_QUERY ) );
Reference< XUIElementFactory > xUIElementFactory = getFactory( ResourceURL, aModuleId );
if ( xUIElementFactory.is() )