Kaydet (Commit) 2c71bdd8 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#705842 Dereference before null check

Change-Id: Ia1e62c3c491525ff96774add0a2e1b10c817ac30
üst 860061de
......@@ -199,12 +199,9 @@ ScUnoEditEngine::ScUnoEditEngine(ScEditEngineDefaulter* pSource)
, nFieldPos(0)
, nFieldIndex(0)
{
if (pSource)
{
EditTextObject* pData = pSource->CreateTextObject();
SetText( *pData );
delete pData;
}
EditTextObject* pData = pSource->CreateTextObject();
SetText( *pData );
delete pData;
}
ScUnoEditEngine::~ScUnoEditEngine()
......
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