summaryrefslogtreecommitdiff
path: root/sw/source/ui/chrdlg
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-11-11 22:06:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-11-12 09:03:13 +0100
commit4ba5a6ccf44d02c1711b059bcf6667a18ee3b574 (patch)
tree20cdd2813aaf954ae91509c9ba6500b0ae56511d /sw/source/ui/chrdlg
parent41ab82d5dbfd04eca6437dc072e0cef15b5d1ae9 (diff)
clang-tidy: performance-unnecessary-copy-initialization in sw
Change-Id: I64342ae8c10738e276702e8ab2c0c0954be25752 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176441 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/chrdlg')
-rw-r--r--sw/source/ui/chrdlg/drpcps.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/chrdlg/drpcps.cxx b/sw/source/ui/chrdlg/drpcps.cxx
index f5e4f1a6caa2..34cfb701ddc9 100644
--- a/sw/source/ui/chrdlg/drpcps.cxx
+++ b/sw/source/ui/chrdlg/drpcps.cxx
@@ -543,7 +543,7 @@ bool SwDropCapsPage::FillItemSet(SfxItemSet *rSet)
void SwDropCapsPage::Reset(const SfxItemSet *rSet)
{
// Characters, lines, gap and text
- SwFormatDrop aFormatDrop( rSet->Get(RES_PARATR_DROP) );
+ const SwFormatDrop& aFormatDrop( rSet->Get(RES_PARATR_DROP) );
if (aFormatDrop.GetLines() > 1)
{
m_xDropCapsField->set_value(aFormatDrop.GetChars());