summaryrefslogtreecommitdiff
path: root/sw/source/uibase/frmdlg/frmmgr.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-11 11:04:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-12 08:04:16 +0200
commit24865e2d57a32aab7212b1a283f9b30215900dda (patch)
tree9fce0db252a9a8b9959b46ce7cad326be6255329 /sw/source/uibase/frmdlg/frmmgr.cxx
parent7786bafdb8951aa3f0acda801ddb3704c81d00d8 (diff)
clang-tidy modernize-pass-by-value in sw
Change-Id: I9a3b33595e34a264baeede33672a0c090ae85157 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138134 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/frmdlg/frmmgr.cxx')
-rw-r--r--sw/source/uibase/frmdlg/frmmgr.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/uibase/frmdlg/frmmgr.cxx b/sw/source/uibase/frmdlg/frmmgr.cxx
index 50ce75e7b7e0..e6d788f0e6c9 100644
--- a/sw/source/uibase/frmdlg/frmmgr.cxx
+++ b/sw/source/uibase/frmdlg/frmmgr.cxx
@@ -31,6 +31,7 @@
#include <comphelper/classids.hxx>
#include <osl/diagnose.h>
#include <fmtclds.hxx>
+#include <utility>
#include <wrtsh.hxx>
#include <view.hxx>
#include <viewopt.hxx>
@@ -117,8 +118,8 @@ SwFlyFrameAttrMgr::SwFlyFrameAttrMgr( bool bNew, SwWrtShell* pSh, Frmmgr_Type nT
::PrepareBoxInfo( m_aSet, *m_pOwnSh );
}
-SwFlyFrameAttrMgr::SwFlyFrameAttrMgr( bool bNew, SwWrtShell* pSh, const SfxItemSet &rSet ) :
- m_aSet( rSet ),
+SwFlyFrameAttrMgr::SwFlyFrameAttrMgr( bool bNew, SwWrtShell* pSh, SfxItemSet aSet ) :
+ m_aSet(std::move( aSet )),
m_pOwnSh( pSh ),
m_bAbsPos( false ),
m_bNewFrame( bNew ),