From e3560f4770487c8d38463fb4a9a63325abc385f9 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Fri, 9 Nov 2018 15:52:14 +0300 Subject: Replace deprecated boost::optional::reset(val) with operator = Change-Id: I7340a561e0df0c781fd834388deb4b9f83800f9b Reviewed-on: https://gerrit.libreoffice.org/63221 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- basic/source/sbx/sbxarray.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basic') diff --git a/basic/source/sbx/sbxarray.cxx b/basic/source/sbx/sbxarray.cxx index 1e6f663824b0..fc86839c1d24 100644 --- a/basic/source/sbx/sbxarray.cxx +++ b/basic/source/sbx/sbxarray.cxx @@ -222,7 +222,7 @@ void SbxArray::PutAlias( const OUString& rAlias, sal_uInt16 nIdx ) else { SbxVarEntry& rRef = reinterpret_cast( GetRef( nIdx ) ); - rRef.maAlias.reset(rAlias); + rRef.maAlias = rAlias; } } @@ -327,7 +327,7 @@ void SbxArray::Merge( SbxArray* p ) SbxVarEntry aNewEntry; aNewEntry.mpVar = rEntry1.mpVar; if (rEntry1.maAlias) - aNewEntry.maAlias.reset(*rEntry1.maAlias); + aNewEntry.maAlias = *rEntry1.maAlias; mVarEntries.push_back(aNewEntry); } } -- cgit