diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-24 10:54:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-24 11:04:11 +0100 |
commit | 1d10db1003f092f48ed09a0d45994f7481b96d84 (patch) | |
tree | 5f73a2450b5bda6cbd1becfba3f013e45b6d67b3 /sc/source/filter/excel/xistyle.cxx | |
parent | 9aeff6adce7287f7e85bc47ac9c418b93351e3d4 (diff) |
loplugin:makeshared in sc
Change-Id: Ie287b5c11a1276c56f416f17ea69cddd5992b4a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87326
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter/excel/xistyle.cxx')
-rw-r--r-- | sc/source/filter/excel/xistyle.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/excel/xistyle.cxx b/sc/source/filter/excel/xistyle.cxx index b1c308673cd7..c08826573856 100644 --- a/sc/source/filter/excel/xistyle.cxx +++ b/sc/source/filter/excel/xistyle.cxx @@ -1898,7 +1898,7 @@ void XclImpXFRangeBuffer::SetXF( const ScAddress& rScPos, sal_uInt16 nXFIndex, X if( maColumns.size() <= nIndex ) maColumns.resize( nIndex + 1 ); if( !maColumns[ nIndex ] ) - maColumns[ nIndex ].reset( new XclImpXFRangeColumn ); + maColumns[ nIndex ] = std::make_shared<XclImpXFRangeColumn>(); // remember all Boolean cells, they will get 'Standard' number format maColumns[ nIndex ]->SetXF( nScRow, XclImpXFIndex( nXFIndex, eMode == xlXFModeBoolCell ) ); @@ -1947,7 +1947,7 @@ void XclImpXFRangeBuffer::SetColumnDefXF( SCCOL nScCol, sal_uInt16 nXFIndex ) if( maColumns.size() <= nIndex ) maColumns.resize( nIndex + 1 ); OSL_ENSURE( !maColumns[ nIndex ], "XclImpXFRangeBuffer::SetColumnDefXF - default column of XFs already has values" ); - maColumns[ nIndex ].reset( new XclImpXFRangeColumn ); + maColumns[ nIndex ] = std::make_shared<XclImpXFRangeColumn>(); maColumns[ nIndex ]->SetDefaultXF( XclImpXFIndex( nXFIndex ) ); } |