summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-08-09 13:30:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-08-10 12:13:30 +0100
commiteab0ae6a51667962dff04a0f1ed2b8411a344462 (patch)
treebe8ddc46b483c8a2006d6aa051ff84e61ff97f40 /comphelper
parentf84b07c57185fee4ad5f1f9a6276c7a9db54e00a (diff)
cppcheck: nullPointerRedundantCheck
Change-Id: I5cac2cdb383de5448383434a910eb97061c29071
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/types.cxx4
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);