From a967c8f6847cf9cbd6e0f4b9f58f2023e1f92ae5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 27 Dec 2017 12:39:11 +0200 Subject: loplugin:passstuffbyref improved return in xmloff,sfx2 Change-Id: I7161dfca77f944027bd20614616e22d6acfa27cd Reviewed-on: https://gerrit.libreoffice.org/47081 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/sfx2/docfile.hxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/sfx2/docfile.hxx') diff --git a/include/sfx2/docfile.hxx b/include/sfx2/docfile.hxx index 9fd18fda2782..ecf023278235 100644 --- a/include/sfx2/docfile.hxx +++ b/include/sfx2/docfile.hxx @@ -132,7 +132,7 @@ public: void CheckFileDate( const css::util::DateTime& aInitDate ); SAL_WARN_UNUSED_RESULT bool DocNeedsFileDateCheck() const; - css::util::DateTime GetInitFileDate( bool bIgnoreOldValue ); + css::util::DateTime const & GetInitFileDate( bool bIgnoreOldValue ); css::uno::Reference< css::ucb::XContent > GetContent() const; const OUString& GetPhysicalName() const; @@ -144,7 +144,7 @@ public: ErrCode GetErrorCode() const; ErrCode GetError() const { return GetErrorCode().IgnoreWarning(); } - ErrCode GetLastStorageCreationState(); + ErrCode const & GetLastStorageCreationState(); void SetError(ErrCode nError); @@ -191,7 +191,7 @@ public: // independent of later changes via SetOpenMode; used for SID_RELOAD: SAL_WARN_UNUSED_RESULT bool IsOriginallyLoadedReadOnly() const; - css::uno::Reference< css::io::XInputStream > GetInputStream(); + css::uno::Reference< css::io::XInputStream > const & GetInputStream(); void CreateTempFile( bool bReplace = true ); void CreateTempFileNoCopy(); @@ -207,9 +207,9 @@ public: SAL_DLLPRIVATE bool HasStorage_Impl() const; SAL_DLLPRIVATE void StorageBackup_Impl(); - SAL_DLLPRIVATE OUString GetBackup_Impl(); + SAL_DLLPRIVATE OUString const & GetBackup_Impl(); - SAL_DLLPRIVATE css::uno::Reference< css::embed::XStorage > GetZipStorageToSign_Impl( bool bReadOnly = true ); + SAL_DLLPRIVATE css::uno::Reference< css::embed::XStorage > const & GetZipStorageToSign_Impl( bool bReadOnly = true ); SAL_DLLPRIVATE void CloseZipStorage_Impl(); // the storage that will be returned by the medium on GetStorage request -- cgit