From eab0ae6a51667962dff04a0f1ed2b8411a344462 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 9 Aug 2015 13:30:36 +0100 Subject: cppcheck: nullPointerRedundantCheck Change-Id: I5cac2cdb383de5448383434a910eb97061c29071 --- comphelper/source/misc/types.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'comphelper') 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); -- cgit