From ec059f87f4b214a9e7590eb913abda6ad491c2e1 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 26 Oct 2011 13:31:46 +0300 Subject: [PATCH] WaE: illegal copy-initialization --- dbaccess/source/core/dataaccess/databasedocument.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx index f11df1c5eb9a..abf96866b956 100644 --- a/dbaccess/source/core/dataaccess/databasedocument.cxx +++ b/dbaccess/source/core/dataaccess/databasedocument.cxx @@ -437,7 +437,7 @@ void lcl_uglyHackToStoreDialogeEmbedImages( const Reference< XStorageBasedLibrar sDialogUrl = sDialogUrl.concat( sLibraries[ i ] ).concat( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("." ) ) ).concat ( sDialogs[ j ] ).concat( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("?location=document") ) ); Reference< ::com::sun::star::awt::XControl > xDialog( xDlgPrv->createDialog( sDialogUrl ), UNO_QUERY ); - Reference< XInterface > xModel = xDialog->getModel(); + Reference< XInterface > xModel( xDialog->getModel() ); GraphicObject::InspectForGraphicObjectImageURL( xModel, vEmbedImgUrls ); } } @@ -1804,7 +1804,7 @@ void ODatabaseDocument::disposing() // the document. And upon closing, our controllers are closed, too { - uno::Reference xUIInterface = m_xUIConfigurationManager; + uno::Reference xUIInterface( m_xUIConfigurationManager ); aKeepAlive.push_back( xUIInterface ); } m_xUIConfigurationManager = NULL; @@ -1829,13 +1829,13 @@ void ODatabaseDocument::disposing() impl_disposeControllerFrames_nothrow(); { - uno::Reference xModuleInterface = m_xModuleManager; + uno::Reference xModuleInterface( m_xModuleManager ); aKeepAlive.push_back( xModuleInterface ); } m_xModuleManager.clear(); { - uno::Reference xTitleInterface = m_xTitleHelper; + uno::Reference xTitleInterface( m_xTitleHelper ); aKeepAlive.push_back( xTitleInterface ); } m_xTitleHelper.clear();