From 19100e5e9a0bf5f6829b52e8459f176b5fe7bc51 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 3 Jul 2014 13:39:37 +0100 Subject: coverity#704112 Unchecked return value Change-Id: Ic1147662012426126c1cfcf7cb496a3d03cab794 --- xmloff/source/draw/ximpshap.cxx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx index dc2d886bbeaf..1f224a12d108 100644 --- a/xmloff/source/draw/ximpshap.cxx +++ b/xmloff/source/draw/ximpshap.cxx @@ -3865,16 +3865,18 @@ void SdXMLCustomShapeContext::EndElement() OSL_FAIL( "could not set enhanced customshape geometry" ); } - sal_Int32 nUPD( 0 ); - sal_Int32 nBuild( 0 ); - GetImport().getBuildIds( nUPD, nBuild ); - if( ((nUPD >= 640 && nUPD <= 645) || (nUPD == 680)) && (nBuild <= 9221) ) + sal_Int32 nUPD; + sal_Int32 nBuild; + if (GetImport().getBuildIds(nUPD, nBuild)) { - Reference< drawing::XEnhancedCustomShapeDefaulter > xDefaulter( mxShape, UNO_QUERY ); - if( xDefaulter.is() ) + if( ((nUPD >= 640 && nUPD <= 645) || (nUPD == 680)) && (nBuild <= 9221) ) { - OUString aEmptyType; - xDefaulter->createCustomShapeDefaults( aEmptyType ); + Reference< drawing::XEnhancedCustomShapeDefaulter > xDefaulter( mxShape, UNO_QUERY ); + if( xDefaulter.is() ) + { + OUString aEmptyType; + xDefaulter->createCustomShapeDefaults( aEmptyType ); + } } } } -- cgit