summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-03 19:48:34 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-04 10:48:19 +0100
commit325ec1c1060ba29b24eb1acbc5451bc972b484fc (patch)
tree17657965a240785766d945aaa282a254d2bc346f /xmloff
parentde788d603dd763ed3c69a4e0fea98a571301c0ca (diff)
cid#1546476 COPY_INSTEAD_OF_MOVE
Change-Id: Ic8133ebfb40c02eb95bdf95809aeca719f636acf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160276 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/forms/layerexport.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/xmloff/source/forms/layerexport.cxx b/xmloff/source/forms/layerexport.cxx
index a75bceada634..dac9297679ae 100644
--- a/xmloff/source/forms/layerexport.cxx
+++ b/xmloff/source/forms/layerexport.cxx
@@ -561,10 +561,8 @@ namespace xmloff
// generate a new control id
- // find a free id
- OUString sCurrentId = lcl_findFreeControlId( m_aControlIds );
- // add it to the map
- m_aCurrentPageIds->second[ xColumnProperties ] = sCurrentId;
+ // find a free id and add it to the map
+ m_aCurrentPageIds->second[xColumnProperties] = lcl_findFreeControlId(m_aControlIds);
// determine a number style, if needed
xColumnPropertiesMeta = xColumnProperties->getPropertySetInfo();