Kaydet (Commit) 18447b04 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#705831 Dereference before null check

Change-Id: I8403e95cb452f2623a5a0bad63c54a3367b73e8c
üst 6aeb4981
......@@ -465,7 +465,7 @@ sal_Bool ScChildrenShapes::ReplaceChild (::accessibility::AccessibleShape* pCurr
pReplacement->Init();
sal_Bool bResult(false);
if (pCurrentChild && pReplacement)
if (pReplacement)
{
OSL_ENSURE(pCurrentChild->GetXShape().get() == pReplacement->GetXShape().get(), "XShape changes and should be inserted sorted");
SortedShapes::iterator aItr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment