summaryrefslogtreecommitdiff
path: root/sw/inc/SwAppletImpl.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-04 09:27:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-04 15:08:26 +0200
commita3e061845b736409094af2bcc2a542ec94b093d9 (patch)
treed3a93c07d3a98f8b377a86382d883246fc68c288 /sw/inc/SwAppletImpl.hxx
parent502357eef1a6d74a0aeb0b3f2ed956cb6f671008 (diff)
clang-tidy modernize-pass-by-value in sw
Change-Id: Ie5c250c64f95e649d33d3f3da7b54e81a4b81d0b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137781 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/SwAppletImpl.hxx')
-rw-r--r--sw/inc/SwAppletImpl.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/inc/SwAppletImpl.hxx b/sw/inc/SwAppletImpl.hxx
index a1abec7b5f4e..24384fda4500 100644
--- a/sw/inc/SwAppletImpl.hxx
+++ b/sw/inc/SwAppletImpl.hxx
@@ -24,6 +24,7 @@
#include <svl/itemset.hxx>
#include <svl/ownlist.hxx>
+#include <utility>
namespace com::sun::star::embed { class XEmbeddedObject; }
@@ -46,7 +47,7 @@ class SwApplet_Impl
public:
static SwHtmlOptType GetOptionType( const OUString& rName, bool bApplet );
SwApplet_Impl( SfxItemPool& rPool );
- SwApplet_Impl( SfxItemSet const & rSet ): m_aItemSet ( rSet) {}
+ SwApplet_Impl( SfxItemSet aSet ): m_aItemSet (std::move(aSet)) {}
~SwApplet_Impl();
void CreateApplet( const OUString& rCode, const OUString& rName,
bool bMayScript, const OUString& rCodeBase,