diff options
author | Noel <noelgrandin@gmail.com> | 2020-09-30 09:37:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-30 12:36:51 +0200 |
commit | b29ec8b26bddc03661c527b603863d9e738d1210 (patch) | |
tree | 829f01d36d867f717d4a3c9373842510bbc76e77 /sc/source/filter/excel/xiescher.cxx | |
parent | 9373320fc88c1582a2ad25bda9c5264c7c58a97e (diff) |
loplugin:reducevarscope in sc
Change-Id: If88c71351fb157b8eab242fceb65422f05eec3d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103645
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter/excel/xiescher.cxx')
-rw-r--r-- | sc/source/filter/excel/xiescher.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/filter/excel/xiescher.cxx b/sc/source/filter/excel/xiescher.cxx index e589b25c33f0..0aff723b16b4 100644 --- a/sc/source/filter/excel/xiescher.cxx +++ b/sc/source/filter/excel/xiescher.cxx @@ -474,10 +474,10 @@ SdrObjectUniquePtr XclImpDrawObjBase::CreateSdrObject( XclImpDffConverter& rDffC if( mnObjType == 7 || (mnObjType < 25 && mnObjType > 10) )//TBX { - //Need summary type for export. Detail type(checkbox, button ...) has been contained by mnObjType - const sal_Int16 nTBXControlType = eCreateFromMSTBXControl ; try { + //Need summary type for export. Detail type(checkbox, button ...) has been contained by mnObjType + const sal_Int16 nTBXControlType = eCreateFromMSTBXControl ; xPropSet->setPropertyValue(sPropertyName, Any(nTBXControlType)); } catch(const Exception&) @@ -492,9 +492,9 @@ SdrObjectUniquePtr XclImpDrawObjBase::CreateSdrObject( XclImpDffConverter& rDffC const XclImpPictureObj* const pObj = dynamic_cast< const XclImpPictureObj* const >(this); if( pObj != nullptr && pObj->IsOcxControl() ) { - const sal_Int16 nOCXControlType = eCreateFromMSOCXControl; try { + const sal_Int16 nOCXControlType = eCreateFromMSOCXControl; xPropSet->setPropertyValue(sPropertyName, Any(nOCXControlType)); //Detail type(checkbox, button ...) xPropSet->setPropertyValue(sObjIdPropertyName, makeAny<sal_uInt16>(mnObjId)); @@ -3474,11 +3474,11 @@ SdrObjectUniquePtr XclImpDffConverter::CreateSdrObject( const XclImpPictureObj& if( GetConvData().mxCtrlForm.is() ) { Reference< XFormComponent > xFComp; - css::awt::Size aSz; // not used in import ReadOCXCtlsStream( mxCtlsStrm, xFComp, rPicObj.GetCtlsStreamPos(), rPicObj.GetCtlsStreamSize() ); // recreate the method formerly known as ReadOCXExcelKludgeStream() if ( xFComp.is() ) { + css::awt::Size aSz; // not used in import ScfPropertySet aPropSet( xFComp ); aPropSet.SetStringProperty( "Name", rPicObj.GetObjName() ); InsertControl( xFComp, aSz,&xShape,true); |