diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-27 11:24:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-27 13:38:42 +0100 |
commit | 16676ea2e86b1b50ba653b736c5db4eb9f32acf9 (patch) | |
tree | 1c5d72c087e5b816572298c3a62d5eddde9566b9 /sc/source/filter/excel/xecontent.cxx | |
parent | cc162981b82548349b4927cf3196ddcf54911850 (diff) |
return unique_ptr in CreateFlatCopiedTokenArray
Change-Id: I0d44ad1eca45b0b77d5a898a553aab61b1f479a9
Reviewed-on: https://gerrit.libreoffice.org/69805
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter/excel/xecontent.cxx')
-rw-r--r-- | sc/source/filter/excel/xecontent.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx index 1bc2697aa518..779f5d710ddd 100644 --- a/sc/source/filter/excel/xecontent.cxx +++ b/sc/source/filter/excel/xecontent.cxx @@ -719,7 +719,7 @@ void XclExpCFImpl::WriteBody( XclExpStream& rStrm ) if (mbFormula2) { - xScTokArr.reset( mrFormatEntry.CreateFlatCopiedTokenArray( 1 ) ); + xScTokArr = mrFormatEntry.CreateFlatCopiedTokenArray( 1 ); mxTokArr2 = rFmlaComp.CreateFormula( EXC_FMLATYPE_CONDFMT, *xScTokArr ); } @@ -1712,7 +1712,7 @@ XclExpDV::XclExpDV( const XclExpRoot& rRoot, sal_uLong nScHandle ) : std::unique_ptr< ScTokenArray > xScTokArr; // first formula - xScTokArr.reset( pValData->CreateFlatCopiedTokenArray( 0 ) ); + xScTokArr = pValData->CreateFlatCopiedTokenArray( 0 ); if (xScTokArr) { if( pValData->GetDataMode() == SC_VALID_LIST ) @@ -1785,7 +1785,7 @@ XclExpDV::XclExpDV( const XclExpRoot& rRoot, sal_uLong nScHandle ) : } // second formula - xScTokArr.reset( pValData->CreateFlatCopiedTokenArray( 1 ) ); + xScTokArr = pValData->CreateFlatCopiedTokenArray( 1 ); if (xScTokArr) { if(GetOutput() == EXC_OUTPUT_BINARY) |