From 4855257e52056241633c2b1d8159c3f0e71e05f3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 31 Dec 2017 21:34:58 +0200 Subject: loplugin:passstuffbyref improved return in sw Change-Id: I4484ac461761e4c46364b4f473c7e62f8ec72103 Reviewed-on: https://gerrit.libreoffice.org/47243 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/inc/shellio.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sw/inc/shellio.hxx') 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 ); -- cgit