From 754cc6c18967f687c6151d34f3fe14a38f9ad4f9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 26 Jan 2015 11:12:29 +0000 Subject: coverity#1266476 silence Dereference null return value Change-Id: I1085d6df3af1198e0fc087da4058f705f13e2f61 --- svx/source/xml/xmlgrhlp.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'svx') diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx index 07d475a9703b..37bbcc387189 100644 --- a/svx/source/xml/xmlgrhlp.cxx +++ b/svx/source/xml/xmlgrhlp.cxx @@ -63,9 +63,9 @@ const MetaCommentAction* ImplCheckForEPS( GDIMetaFile& rMtf ) { const MetaCommentAction* pComment = NULL; - if ( ( rMtf.GetActionSize() >= 2 ) - && ( rMtf.FirstAction()->GetType() == META_EPS_ACTION ) - && ( ((const MetaAction*)rMtf.GetAction( 1 ))->GetType() == META_COMMENT_ACTION ) + if ( rMtf.GetActionSize() >= 2 + && rMtf.GetAction(0)->GetType() == META_EPS_ACTION + && rMtf.GetAction(1)->GetType() == META_COMMENT_ACTION && ( static_cast(rMtf.GetAction( 1 ))->GetComment() == "EPSReplacementGraphic" ) ) pComment = static_cast(rMtf.GetAction( 1 )); -- cgit