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 --- forms/source/component/ListBox.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'forms') diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index b41e06ce1c4f..e355a18ff24f 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -749,7 +749,7 @@ namespace frm { sal_Int16 nBoundColumn( 0 ); m_aBoundColumn >>= nBoundColumn; - aBoundColumn.reset( nBoundColumn ); + aBoundColumn = nBoundColumn; } ::utl::SharedUNOComponent< XResultSet > xListCursor; @@ -782,7 +782,7 @@ namespace frm Reference xFieldAsSet(xFieldsByIndex->getByIndex( *aBoundColumn ),UNO_QUERY); assert(xFieldAsSet.is()); xFieldAsSet->getPropertyValue(PROPERTY_NAME) >>= aBoundFieldName; - aBoundColumn.reset( 1 ); + aBoundColumn = 1; xFieldAsSet.set(xFieldsByIndex->getByIndex(0),UNO_QUERY); xFieldAsSet->getPropertyValue(PROPERTY_NAME) >>= aFieldName; -- cgit