diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-05 10:17:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-05 14:57:57 +0000 |
commit | 680438cb97b36f17c6b418ec2556a55c998ca520 (patch) | |
tree | 506b565ab14af1622b7c14dbf45dfabe1c5ab9b1 /unoidl | |
parent | 37b3a5dc5bf0720a585ae0cd6d64f081247e1aa1 (diff) |
coverity#1103678 Unchecked dynamic_cast
Change-Id: Ic87cc3d968447051e52012e59d92e95280d9d35a
Diffstat (limited to 'unoidl')
-rw-r--r-- | unoidl/source/unoidl-check.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unoidl/source/unoidl-check.cxx b/unoidl/source/unoidl-check.cxx index 93cfc2dc4257..c314b86debcf 100644 --- a/unoidl/source/unoidl-check.cxx +++ b/unoidl/source/unoidl-check.cxx @@ -203,8 +203,8 @@ void checkMap( rtl::Reference<unoidl::Provider> const & providerB, OUString cons << std::endl; std::exit(EXIT_FAILURE); } - if ((dynamic_cast<unoidl::PublishableEntity *>(entA.get())->isPublished()) && - (!dynamic_cast<unoidl::PublishableEntity *>(entB.get())->isPublished())) + if ((dynamic_cast<unoidl::PublishableEntity&>(*entA.get()).isPublished()) && + (!dynamic_cast<unoidl::PublishableEntity&>(*entB.get()).isPublished())) { std::cerr << "A published entity " << name << " is not published in B" |