summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-02 08:58:45 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-02 11:51:49 +0200
commit6a0d4d45d9e5933028f437ebd6756946a127e4a4 (patch)
tree43ac30c03ec10c0f83e0ebd5a953f08d28c3641f
parent2d581a8a2236b13a84ba9fbc5c1837bee3f7b7a0 (diff)
cid#1554879 Use of auto that causes a copy
Change-Id: I5989905a2efeff23cf803832a5d65857c64b036e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169854 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r--svx/source/tbxctrls/linectrl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/tbxctrls/linectrl.cxx b/svx/source/tbxctrls/linectrl.cxx
index a47665d1bde5..617bdb8f8fbc 100644
--- a/svx/source/tbxctrls/linectrl.cxx
+++ b/svx/source/tbxctrls/linectrl.cxx
@@ -543,9 +543,9 @@ void SvxLineBox::Fill( const XDashListRef &pList )
mxLineStyleSet->InsertItem(1, Image(), pList->GetStringForUiNoLine());
// entry for solid line
- auto aBmp = pList->GetBitmapForUISolidLine();
- Size aBmpSize = aBmp.GetSizePixel();
- mxLineStyleSet->InsertItem(2, Image(aBmp), pList->GetStringForUiSolidLine());
+ const auto& rBmp = pList->GetBitmapForUISolidLine();
+ Size aBmpSize = rBmp.GetSizePixel();
+ mxLineStyleSet->InsertItem(2, Image(rBmp), pList->GetStringForUiSolidLine());
// entries for dashed lines
tools::Long nCount = pList->Count();