diff options
Diffstat (limited to 'framework/source/fwe/xml/menuconfiguration.cxx')
-rw-r--r-- | framework/source/fwe/xml/menuconfiguration.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/framework/source/fwe/xml/menuconfiguration.cxx b/framework/source/fwe/xml/menuconfiguration.cxx index 0f0e894eb69d..3e3600128517 100644 --- a/framework/source/fwe/xml/menuconfiguration.cxx +++ b/framework/source/fwe/xml/menuconfiguration.cxx @@ -82,7 +82,7 @@ throw ( WrappedTargetException ) try { xParser->parseStream( aInputSource ); - return Reference< XIndexAccess >( xItemContainer, UNO_QUERY ); + return xItemContainer; } catch ( const RuntimeException& e ) { @@ -126,8 +126,7 @@ throw ( WrappedTargetException ) try { - Reference< XDocumentHandler > xHandler(xWriter, UNO_QUERY_THROW); - OWriteMenuDocumentHandler aWriteMenuDocumentHandler( rMenuBarConfiguration, xHandler ); + OWriteMenuDocumentHandler aWriteMenuDocumentHandler( rMenuBarConfiguration, xWriter ); aWriteMenuDocumentHandler.WriteMenuDocument(); } catch ( const RuntimeException& e ) |