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

coverity#1439335 silence Explicit null dereferenced

and

coverity#1439331 Explicit null dereferenced

Change-Id: Ic9de4d4975cc1721fe5064b2cb8f41b819cf1f98
Reviewed-on: https://gerrit.libreoffice.org/60521Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 8629850e
...@@ -476,6 +476,7 @@ bool SwAttrCheckArr::SetAttrFwd( const SwTextAttr& rAttr ) ...@@ -476,6 +476,7 @@ bool SwAttrCheckArr::SetAttrFwd( const SwTextAttr& rAttr )
} }
if( pIter ) if( pIter )
{ {
assert(pSet && "otherwise no pIter");
nWhch = pIter->NextWhich(); nWhch = pIter->NextWhich();
while( nWhch && while( nWhch &&
SfxItemState::SET != pSet->GetItemState( nWhch, true, &pTmpItem ) ) SfxItemState::SET != pSet->GetItemState( nWhch, true, &pTmpItem ) )
...@@ -627,6 +628,7 @@ bool SwAttrCheckArr::SetAttrBwd( const SwTextAttr& rAttr ) ...@@ -627,6 +628,7 @@ bool SwAttrCheckArr::SetAttrBwd( const SwTextAttr& rAttr )
} }
if( pIter ) if( pIter )
{ {
assert(pSet && "otherwise no pIter");
nWhch = pIter->NextWhich(); nWhch = pIter->NextWhich();
while( nWhch && while( nWhch &&
SfxItemState::SET != pSet->GetItemState( nWhch, true, &pTmpItem ) ) SfxItemState::SET != pSet->GetItemState( nWhch, true, &pTmpItem ) )
......
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