summaryrefslogtreecommitdiff
path: root/embeddedobj/source/inc
diff options
context:
space:
mode:
Diffstat (limited to 'embeddedobj/source/inc')
-rw-r--r--embeddedobj/source/inc/commonembobj.hxx4
-rw-r--r--embeddedobj/source/inc/docholder.hxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/embeddedobj/source/inc/commonembobj.hxx b/embeddedobj/source/inc/commonembobj.hxx
index f98c033809e4..b3f4524bbc30 100644
--- a/embeddedobj/source/inc/commonembobj.hxx
+++ b/embeddedobj/source/inc/commonembobj.hxx
@@ -170,8 +170,8 @@ private:
const css::uno::Reference< css::embed::XStorage >& xNewParentStorage,
const OUString& aNewName );
- OUString GetDocumentServiceName() const { return m_aDocServiceName; }
- OUString GetPresetFilterName() const { return m_aPresetFilterName; }
+ const OUString& GetDocumentServiceName() const { return m_aDocServiceName; }
+ const OUString& GetPresetFilterName() const { return m_aPresetFilterName; }
css::uno::Reference< css::io::XInputStream >
StoreDocumentToTempStream_Impl( sal_Int32 nStorageFormat,
diff --git a/embeddedobj/source/inc/docholder.hxx b/embeddedobj/source/inc/docholder.hxx
index e47e95872c1a..10a9b57cac30 100644
--- a/embeddedobj/source/inc/docholder.hxx
+++ b/embeddedobj/source/inc/docholder.hxx
@@ -164,7 +164,7 @@ public:
m_xOutplaceInterceptor = xOutplaceInterceptor;
}
- css::uno::Reference< css::util::XCloseable > GetComponent() { return m_xComponent; }
+ const css::uno::Reference< css::util::XCloseable >& GetComponent() { return m_xComponent; }
// XEventListener
virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) throw (css::uno::RuntimeException, std::exception) override;