Kaydet (Commit) 44ba417d authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

coverity#982181: Unchecked return value

Change-Id: Idcac7155b9cd3ee94c3ed773a0e6e7f24a48d47a
üst cbb081e2
...@@ -1243,10 +1243,12 @@ void PPTWriter::ImplWriteTextStyleAtom( SvStream& rOut, int nTextInstance, sal_u ...@@ -1243,10 +1243,12 @@ void PPTWriter::ImplWriteTextStyleAtom( SvStream& rOut, int nTextInstance, sal_u
const uno::Reference< beans::XPropertySet > xPropSet( mXModel, uno::UNO_QUERY ); const uno::Reference< beans::XPropertySet > xPropSet( mXModel, uno::UNO_QUERY );
if ( xPropSet.is() ) if ( xPropSet.is() )
{ {
ImplGetPropertyValue( xPropSet, OUString( "TabStop" ) ); if(ImplGetPropertyValue( xPropSet, OUString( "TabStop" ) ))
sal_Int32 nTabStop( 0 ); {
if ( mAny >>= nTabStop ) sal_Int32 nTabStop( 0 );
nDefaultTabSizeSrc = nTabStop; if ( mAny >>= nTabStop )
nDefaultTabSizeSrc = nTabStop;
}
} }
const sal_uInt32 nDefaultTabSize = MapSize( awt::Size( nDefaultTabSizeSrc, 1 ) ).Width; const sal_uInt32 nDefaultTabSize = MapSize( awt::Size( nDefaultTabSizeSrc, 1 ) ).Width;
sal_uInt32 nDefaultTabs = std::abs( maRect.GetWidth() ) / nDefaultTabSize; sal_uInt32 nDefaultTabs = std::abs( maRect.GetWidth() ) / nDefaultTabSize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment