diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 11:12:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 12:14:44 +0000 |
commit | 754cc6c18967f687c6151d34f3fe14a38f9ad4f9 (patch) | |
tree | e9541565f2f337ab421d7bb6edb8a124e64f7655 /svx | |
parent | f848e9cc28d5a26f1f706ea35db16a9f5ad9376a (diff) |
coverity#1266476 silence Dereference null return value
Change-Id: I1085d6df3af1198e0fc087da4058f705f13e2f61
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/xml/xmlgrhlp.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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<const MetaCommentAction*>(rMtf.GetAction( 1 ))->GetComment() == "EPSReplacementGraphic" ) ) pComment = static_cast<const MetaCommentAction*>(rMtf.GetAction( 1 )); |