diff --git a/framework/inc/helper/mischelper.hxx b/framework/inc/helper/mischelper.hxx index 39cae9c6a484..84d3dc599795 100644 --- a/framework/inc/helper/mischelper.hxx +++ b/framework/inc/helper/mischelper.hxx @@ -148,7 +148,7 @@ class WeakContainerListener : public ::cppu::WeakImplHelper mxOwner; public: - WeakContainerListener(css::uno::Reference xOwner) + WeakContainerListener(css::uno::Reference const & xOwner) : mxOwner(xOwner) { } @@ -203,7 +203,7 @@ class WeakChangesListener : public ::cppu::WeakImplHelper mxOwner; public: - WeakChangesListener(css::uno::Reference xOwner) + WeakChangesListener(css::uno::Reference const & xOwner) : mxOwner(xOwner) { } @@ -240,7 +240,7 @@ class WeakDocumentEventListener : public ::cppu::WeakImplHelper mxOwner; public: - WeakDocumentEventListener(css::uno::Reference xOwner) + WeakDocumentEventListener(css::uno::Reference const & xOwner) : mxOwner(xOwner) { } diff --git a/framework/inc/xml/imagesdocumenthandler.hxx b/framework/inc/xml/imagesdocumenthandler.hxx index c46edece15ac..16ffcbea0d65 100644 --- a/framework/inc/xml/imagesdocumenthandler.hxx +++ b/framework/inc/xml/imagesdocumenthandler.hxx @@ -135,7 +135,8 @@ class OWriteImagesDocumentHandler public: OWriteImagesDocumentHandler( const ImageListsDescriptor& aItems, - css::uno::Reference< css::xml::sax::XDocumentHandler > ); + css::uno::Reference< css::xml::sax::XDocumentHandler > const & + rWriteDocumentHandler); virtual ~OWriteImagesDocumentHandler(); void WriteImagesDocument() throw diff --git a/framework/source/services/desktop.cxx b/framework/source/services/desktop.cxx index 0ec0bce5bf94..d1f09fb66e8b 100644 --- a/framework/source/services/desktop.cxx +++ b/framework/source/services/desktop.cxx @@ -355,7 +355,7 @@ namespace Desktop* const m_pDesktop; css::uno::Reference< css::frame::XTerminateListener > m_xQuickLauncher; public: - QuickstartSuppressor(Desktop* const pDesktop, css::uno::Reference< css::frame::XTerminateListener > xQuickLauncher) + QuickstartSuppressor(Desktop* const pDesktop, css::uno::Reference< css::frame::XTerminateListener > const & xQuickLauncher) : m_pDesktop(pDesktop) , m_xQuickLauncher(xQuickLauncher) { diff --git a/framework/source/xml/imagesdocumenthandler.cxx b/framework/source/xml/imagesdocumenthandler.cxx index a04fe0165081..913324f8c7b1 100644 --- a/framework/source/xml/imagesdocumenthandler.cxx +++ b/framework/source/xml/imagesdocumenthandler.cxx @@ -588,7 +588,7 @@ OUString OReadImagesDocumentHandler::getErrorLineString() OWriteImagesDocumentHandler::OWriteImagesDocumentHandler( const ImageListsDescriptor& aItems, - Reference< XDocumentHandler > rWriteDocumentHandler ) : + Reference< XDocumentHandler > const & rWriteDocumentHandler ) : m_aImageListsItems( aItems ), m_xWriteDocumentHandler( rWriteDocumentHandler ) {