summaryrefslogtreecommitdiff
path: root/include/sfx2/docfile.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-27 12:39:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-27 15:39:29 +0100
commita967c8f6847cf9cbd6e0f4b9f58f2023e1f92ae5 (patch)
treea00a7d73a3aa5d6d972c8a66e9357637edf62f9b /include/sfx2/docfile.hxx
parent33bd6c3e3512bf96376534e116d6f9f60d157be9 (diff)
loplugin:passstuffbyref improved return in xmloff,sfx2
Change-Id: I7161dfca77f944027bd20614616e22d6acfa27cd Reviewed-on: https://gerrit.libreoffice.org/47081 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2/docfile.hxx')
-rw-r--r--include/sfx2/docfile.hxx10
1 files changed, 5 insertions, 5 deletions
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