summaryrefslogtreecommitdiff
path: root/sw/inc/shellio.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-31 21:34:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-02 12:19:10 +0100
commit4855257e52056241633c2b1d8159c3f0e71e05f3 (patch)
tree4a56a5ead5cacdf70ed7fb31bf8a949aba774030 /sw/inc/shellio.hxx
parent884cbe174ee5e343e9ed56093421aad3e467bf57 (diff)
loplugin:passstuffbyref improved return in sw
Change-Id: I4484ac461761e4c46364b4f473c7e62f8ec72103 Reviewed-on: https://gerrit.libreoffice.org/47243 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/shellio.hxx')
-rw-r--r--sw/inc/shellio.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/inc/shellio.hxx b/sw/inc/shellio.hxx
index eb764518061a..ac1cd9e50d48 100644
--- a/sw/inc/shellio.hxx
+++ b/sw/inc/shellio.hxx
@@ -302,7 +302,7 @@ public:
void ClearDoc(); // Delete Doc-contents.
OUString GetName();
void SetName( const OUString& );
- ErrCode GetError() const { return nErr; }
+ ErrCode const & GetError() const { return nErr; }
OUString GetBaseURL() const;
void SetBaseURL( const OUString& rURL );
@@ -317,7 +317,7 @@ public:
bool Delete( sal_uInt16 );
void Rename( sal_uInt16, const OUString*, const OUString* );
- ErrCode CopyBlock( SwTextBlocks const & rSource, OUString& rSrcShort,
+ ErrCode const & CopyBlock( SwTextBlocks const & rSource, OUString& rSrcShort,
const OUString& rLong );
bool BeginGetDoc( sal_uInt16 ); // Read text modules.
@@ -331,7 +331,7 @@ public:
bool IsOnlyTextBlock( sal_uInt16 ) const;
bool IsOnlyTextBlock( const OUString& rShort ) const;
- OUString GetFileName() const; // Filename of pImp.
+ OUString const & GetFileName() const; // Filename of pImp.
bool IsReadOnly() const; // ReadOnly-flag of pImp.
bool GetMacroTable( sal_uInt16 nIdx, SvxMacroTableDtor& rMacroTable );