summaryrefslogtreecommitdiff
path: root/xmloff/source/table/XMLTableImport.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-23 09:47:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-24 08:37:51 +0200
commitf31c9f16fefd16ea434cdd68721d45bced9b78e1 (patch)
treec0c504cb4e4d41e168f7118c1baee6b4091aa51d /xmloff/source/table/XMLTableImport.cxx
parent645db9a2643832e29dbdf904e1cf7b323d273f86 (diff)
clang-tidy performance-unnecessary-copy-init in test..xmlscript
Change-Id: I1ae16467a8e58e8a50f59b7a140e9f8b68bde07e Reviewed-on: https://gerrit.libreoffice.org/62254 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/table/XMLTableImport.cxx')
-rw-r--r--xmloff/source/table/XMLTableImport.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmloff/source/table/XMLTableImport.cxx b/xmloff/source/table/XMLTableImport.cxx
index 9b2c646c3a09..5cc315c73efd 100644
--- a/xmloff/source/table/XMLTableImport.cxx
+++ b/xmloff/source/table/XMLTableImport.cxx
@@ -596,10 +596,8 @@ void XMLTableImportContext::EndElement()
{
if( !maMergeInfos.empty() )
{
- for( const auto& rMergeInfo : maMergeInfos )
+ for( const std::shared_ptr< MergeInfo >& xInfo : maMergeInfos )
{
- std::shared_ptr< MergeInfo > xInfo( rMergeInfo );
-
if( xInfo.get() ) try
{
Reference< XCellRange > xRange( mxTable->getCellRangeByPosition( xInfo->mnStartColumn, xInfo->mnStartRow, xInfo->mnEndColumn, xInfo->mnEndRow ) );