diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-07 11:18:49 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-07 12:19:22 +0000 |
commit | 9e8ba548cfefc58ac23dffd696048463675b7eb0 (patch) | |
tree | 05716014c4a6577385ea549958f7dce27b6f6782 /editeng | |
parent | 31045492f0068210851d51751ca27d43c345e55a (diff) |
coverity#982456 Dereference after null check
Change-Id: I7222d394c47b73b8a84cd069fed3eb268090a70b
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editobj.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/editeng/editobj.cxx b/editeng/source/editeng/editobj.cxx index b14771c56a27..10c0004ce261 100644 --- a/editeng/source/editeng/editobj.cxx +++ b/editeng/source/editeng/editobj.cxx @@ -583,17 +583,17 @@ EditTextObjectImpl::EditTextObjectImpl( EditTextObject* pFront, const EditTextOb else { pPool = EditEngine::CreatePool(); - bOwnerOfPool = true; + bOwnerOfPool = true; } - if(!bOwnerOfPool && pPool) + if (!bOwnerOfPool) { // it is sure now that the pool is an EditEngineItemPool pPool->AddSfxItemPoolUser(*mpFront); } - if ( bOwnerOfPool && pPool && r.pPool ) + if (bOwnerOfPool && r.pPool) pPool->SetDefaultMetric( r.pPool->GetMetric( DEF_METRIC ) ); aContents.reserve(r.aContents.size()); |