diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-01 00:25:16 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-01 00:49:12 +0200 |
commit | 85456fae54029edd26df2277a9eec5e2fe3d9739 (patch) | |
tree | fd55ad48b34c66f0b839edcbc952a8a5a0752c72 /codemaker | |
parent | 1d35b89e7581e12024769d19bfb6d6eb2c3274b8 (diff) |
tdf#120703 PVS: Silence V522 warnings
V522 There might be dereferencing of a potential null pointer.
Change-Id: Ie617b41a8f8d334022cf5313b242a236baedba48
Reviewed-on: https://gerrit.libreoffice.org/70017
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'codemaker')
-rw-r--r-- | codemaker/source/cppumaker/cpputype.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx index 4b3face0c702..0dcd8a047037 100644 --- a/codemaker/source/cppumaker/cpputype.cxx +++ b/codemaker/source/cppumaker/cpputype.cxx @@ -527,8 +527,9 @@ void CppuType::dumpInitializer( out << "0"; break; case codemaker::UnoType::Sort::Enum: + assert(dynamic_cast<unoidl::EnumTypeEntity*>(ent.get())); out << codemaker::cpp::scopedCppName(u2b(n)) << "_" - << (dynamic_cast< unoidl::EnumTypeEntity * >(ent.get())-> + << (static_cast<unoidl::EnumTypeEntity*>(ent.get())-> getMembers()[0].name); break; case codemaker::UnoType::Sort::String: |