diff options
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/doctempl.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/doc/doctemplates.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/doc/objcont.cxx | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index c9ecec7634fa..4362ddb64c53 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -2677,7 +2677,7 @@ void SfxMedium::SetFilter( const std::shared_ptr<const SfxFilter>& pFilter ) pImp->m_pFilter = pFilter; } -std::shared_ptr<const SfxFilter> SfxMedium::GetFilter() const +const std::shared_ptr<const SfxFilter>& SfxMedium::GetFilter() const { return pImp->m_pFilter; } diff --git a/sfx2/source/doc/doctempl.cxx b/sfx2/source/doc/doctempl.cxx index 557278cd9029..07a852a298ba 100644 --- a/sfx2/source/doc/doctempl.cxx +++ b/sfx2/source/doc/doctempl.cxx @@ -231,9 +231,9 @@ public: bool GetTitleFromURL( const OUString& rURL, OUString& aTitle ); bool InsertRegion( RegionData_Impl *pData, size_t nPos = size_t(-1) ); - OUString GetRootURL() const { return maRootURL; } + const OUString& GetRootURL() const { return maRootURL; } - uno::Reference< XDocumentTemplates > getDocTemplates() { return mxTemplates; } + const uno::Reference< XDocumentTemplates >& getDocTemplates() { return mxTemplates; } }; diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx index 175354c12fd6..14b427b8e4d6 100644 --- a/sfx2/source/doc/doctemplates.cxx +++ b/sfx2/source/doc/doctemplates.cxx @@ -277,10 +277,10 @@ public: ~SfxDocTplService_Impl(); bool init() { if ( !mbIsInitialized ) init_Impl(); return mbIsInitialized; } - Content getContent() const { return maRootContent; } + const Content& getContent() const { return maRootContent; } void setLocale( const lang::Locale & rLocale ); - lang::Locale getLocale(); + lang::Locale getLocale(); bool storeTemplate( const OUString& rGroupName, const OUString& rTemplateName, diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx index e6c0ee950a28..87769d5e551e 100644 --- a/sfx2/source/doc/objcont.cxx +++ b/sfx2/source/doc/objcont.cxx @@ -622,7 +622,7 @@ bool SfxObjectShell::SetModifyPasswordHash( sal_uInt32 nHash ) return false; } -uno::Sequence< beans::PropertyValue > SfxObjectShell::GetModifyPasswordInfo() const +const uno::Sequence< beans::PropertyValue >& SfxObjectShell::GetModifyPasswordInfo() const { return pImp->m_aModifyPasswordInfo; } |