diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/fielduno.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/unoobj/fielduno.cxx b/sc/source/ui/unoobj/fielduno.cxx index 6b00a69097e6..eeda77b2e53c 100644 --- a/sc/source/ui/unoobj/fielduno.cxx +++ b/sc/source/ui/unoobj/fielduno.cxx @@ -167,7 +167,7 @@ class ScUnoEditEngine : public ScEditEngineDefaulter ScUnoCollectMode eMode; sal_uInt16 nFieldCount; sal_Int32 mnFieldType; - std::unique_ptr<SvxFieldData> + tools::SvRef<SvxFieldData> pFound; // local copy sal_Int32 nFieldPar; sal_Int32 nFieldPos; @@ -214,14 +214,14 @@ OUString ScUnoEditEngine::CalcFieldValue( const SvxFieldItem& rField, { if ( eMode == SC_UNO_COLLECT_FINDINDEX && !pFound && nFieldCount == nFieldIndex ) { - pFound.reset( pFieldData->Clone() ); + pFound = pFieldData->Clone(); nFieldPar = nPara; nFieldPos = nPos; } if ( eMode == SC_UNO_COLLECT_FINDPOS && !pFound && nPara == nFieldPar && nPos == nFieldPos ) { - pFound.reset( pFieldData->Clone() ); + pFound = pFieldData->Clone(); nFieldIndex = nFieldCount; } ++nFieldCount; |