Kaydet (Commit) 1dc47816 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#988421 unchecked return value

Change-Id: I822c21cd3c3bd8f720e39f540b4931050d62fb91
üst 2db08b9e
...@@ -558,7 +558,12 @@ void ScXMLDataPilotTableContext::EndElement() ...@@ -558,7 +558,12 @@ void ScXMLDataPilotTableContext::EndElement()
if ( pDPCollection->GetByName(pDPObject->GetName()) ) if ( pDPCollection->GetByName(pDPObject->GetName()) )
pDPObject->SetName( OUString() ); // ignore the invalid name, create a new name in AfterXMLLoading pDPObject->SetName( OUString() ); // ignore the invalid name, create a new name in AfterXMLLoading
pDPCollection->InsertNewTable(pDPObject); if (!pDPCollection->InsertNewTable(pDPObject))
{
OSL_FAIL("cannot insert DPObject");
DELETEZ( pDPObject );
}
SetButtons(); SetButtons();
} }
......
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