diff options
Diffstat (limited to 'sc/source/filter/excel/xiescher.cxx')
-rw-r--r-- | sc/source/filter/excel/xiescher.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sc/source/filter/excel/xiescher.cxx b/sc/source/filter/excel/xiescher.cxx index 2c1809983825..726ef0d17b3e 100644 --- a/sc/source/filter/excel/xiescher.cxx +++ b/sc/source/filter/excel/xiescher.cxx @@ -461,11 +461,9 @@ SdrObjectPtr XclImpDrawObjBase::CreateSdrObject( XclImpDffConverter& rDffConv, c { //Need summary type for export. Detail type(checkbox, button ...) has been contained by mnObjType const sal_Int16 nTBXControlType = eCreateFromMSTBXControl ; - Any aAny; - aAny <<= nTBXControlType; try { - xPropSet->setPropertyValue(sPropertyName, aAny); + xPropSet->setPropertyValue(sPropertyName, Any(nTBXControlType)); } catch(const Exception&) { @@ -480,14 +478,11 @@ SdrObjectPtr XclImpDrawObjBase::CreateSdrObject( XclImpDffConverter& rDffConv, c if( pObj != nullptr && pObj->IsOcxControl() ) { const sal_Int16 nOCXControlType = eCreateFromMSOCXControl; - Any aAny; try { - aAny <<= nOCXControlType; - xPropSet->setPropertyValue(sPropertyName, aAny); + xPropSet->setPropertyValue(sPropertyName, Any(nOCXControlType)); //Detail type(checkbox, button ...) - aAny<<= mnObjId; - xPropSet->setPropertyValue(sObjIdPropertyName, aAny); + xPropSet->setPropertyValue(sObjIdPropertyName, makeAny<sal_uInt16>(mnObjId)); } catch(const Exception&) { |