diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-29 14:15:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-29 18:19:37 +0100 |
commit | 4b030651a0ad5e0eedd6d08b6cd1459ca514d818 (patch) | |
tree | 5a02580a42d8593c3afc9f39816128562a9cfc6b /include/oox | |
parent | d460842616d467dfaf7b51ac2db94adb1ff5cbb0 (diff) |
loplugin:passstuffbyref improved return in various
Change-Id: I0a8282d8e0d9575b055243073fc89a7d6b67b560
Reviewed-on: https://gerrit.libreoffice.org/47173
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/oox')
-rw-r--r-- | include/oox/core/filterbase.hxx | 4 | ||||
-rw-r--r-- | include/oox/export/vmlexport.hxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/oox/core/filterbase.hxx b/include/oox/core/filterbase.hxx index 3accd63f2872..790d8d94b436 100644 --- a/include/oox/core/filterbase.hxx +++ b/include/oox/core/filterbase.hxx @@ -152,7 +152,7 @@ public: OUString getAbsoluteUrl( const OUString& rUrl ) const; /** Returns the base storage of the imported/exported file. */ - StorageRef getStorage() const; + StorageRef const & getStorage() const; /** Opens and returns the specified input stream from the base storage. @@ -248,7 +248,7 @@ protected: virtual bool implFinalizeExport( utl::MediaDescriptor& rMediaDescriptor ); - css::uno::Reference< css::io::XStream > + css::uno::Reference< css::io::XStream > const & getMainDocumentStream( ) const; private: diff --git a/include/oox/export/vmlexport.hxx b/include/oox/export/vmlexport.hxx index 0564eff65832..bea395e32ce3 100644 --- a/include/oox/export/vmlexport.hxx +++ b/include/oox/export/vmlexport.hxx @@ -134,10 +134,10 @@ public: /// Export the sdr object as VML. /// /// Call this when you need to export the object as VML. - OString AddSdrObject( const SdrObject& rObj, sal_Int16 eHOri = -1, + OString const & AddSdrObject( const SdrObject& rObj, sal_Int16 eHOri = -1, sal_Int16 eVOri = -1, sal_Int16 eHRel = -1, sal_Int16 eVRel = -1, const bool bOOxmlExport = false ); - OString AddInlineSdrObject( const SdrObject& rObj, const bool bOOxmlExport ); + OString const & AddInlineSdrObject( const SdrObject& rObj, const bool bOOxmlExport ); virtual void AddSdrObjectVMLObject( const SdrObject& rObj) override; static bool IsWaterMarkShape(const OUString& rStr); |