diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-03 13:39:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-03 14:52:29 +0100 |
commit | 19100e5e9a0bf5f6829b52e8459f176b5fe7bc51 (patch) | |
tree | f1c73846626716b848b40d0f1e89a3e0dbd2882c /xmloff/source | |
parent | 29e353bdf7990a9d3db36e3210136893bf75fe94 (diff) |
coverity#704112 Unchecked return value
Change-Id: Ic1147662012426126c1cfcf7cb496a3d03cab794
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/draw/ximpshap.cxx | 18 |
1 files 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 ); + } } } } |