diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-08-09 13:30:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-08-10 12:13:30 +0100 |
commit | eab0ae6a51667962dff04a0f1ed2b8411a344462 (patch) | |
tree | be8ddc46b483c8a2006d6aa051ff84e61ff97f40 | |
parent | f84b07c57185fee4ad5f1f9a6276c7a9db54e00a (diff) |
cppcheck: nullPointerRedundantCheck
Change-Id: I5cac2cdb383de5448383434a910eb97061c29071
-rw-r--r-- | comphelper/source/misc/types.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/comphelper/source/misc/types.cxx b/comphelper/source/misc/types.cxx index 7ece3eb95f37..9dc225f310ea 100644 --- a/comphelper/source/misc/types.cxx +++ b/comphelper/source/misc/types.cxx @@ -461,9 +461,7 @@ Type getSequenceElementType(const Type& _rSequenceType) typelib_IndirectTypeDescription* pSequenceTD = reinterpret_cast< typelib_IndirectTypeDescription* >(aTD.get()); - OSL_ASSERT(pSequenceTD); - OSL_ASSERT(pSequenceTD->pType); - + OSL_ASSERT(pSequenceTD && pSequenceTD->pType); if (pSequenceTD && pSequenceTD->pType) return Type(pSequenceTD->pType); |