diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-31 10:23:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-31 15:11:27 +0200 |
commit | 5ecdedbf81af5516ff7d2195383dc9d6389fb0d0 (patch) | |
tree | 5b07d41d683abb65354bf4ced261edfb86ef3174 /basic/source/uno/namecont.cxx | |
parent | af44198d80edce92bdbb82dfd6f218eeb6163484 (diff) |
clang-tidy modernize-pass-by-value in basic
Change-Id: I9034ab95a4ccb58e36e77d911dd33cc50857c03a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135176
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/source/uno/namecont.cxx')
-rw-r--r-- | basic/source/uno/namecont.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index 55058556bcfc..05a1a5b40f97 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -30,6 +30,7 @@ #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/ucb/ContentCreationException.hpp> #include <com/sun/star/xml/sax/SAXException.hpp> +#include <utility> #include <vcl/svapp.hxx> #include <o3tl/string_view.hxx> #include <osl/mutex.hxx> @@ -2950,7 +2951,7 @@ SfxLibrary::SfxLibrary( ModifiableHelper& _rModifiable, const Type& aType, SfxLibrary::SfxLibrary( ModifiableHelper& _rModifiable, const Type& aType, const Reference< XSimpleFileAccess3 >& xSFI, - const OUString& aLibInfoFileURL, const OUString& aStorageURL, bool ReadOnly ) + OUString aLibInfoFileURL, OUString aStorageURL, bool ReadOnly ) : OComponentHelper( m_aMutex ) , mxSFI( xSFI ) , mrModifiable( _rModifiable ) @@ -2958,8 +2959,8 @@ SfxLibrary::SfxLibrary( ModifiableHelper& _rModifiable, const Type& aType, , mbLoaded( false ) , mbIsModified( true ) , mbInitialised( false ) - , maLibInfoFileURL( aLibInfoFileURL ) - , maStorageURL( aStorageURL ) + , maLibInfoFileURL(std::move( aLibInfoFileURL )) + , maStorageURL(std::move( aStorageURL )) , mbLink( true ) , mbReadOnly( false ) , mbReadOnlyLink( ReadOnly ) |