diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-24 13:12:01 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-24 14:01:58 +0000 |
commit | e9ab0dbfec46e15c7723f10b55a18d61efaae306 (patch) | |
tree | 52d95e946e32f39c7a3c5c195224979ee15aa82f /svtools | |
parent | 269451915f6c676721c7094b14c04b61e44931f4 (diff) |
coverity#1158253 Dereference before null check
Change-Id: If653cc6dc0b53f66728500d779460ee352924947
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/treelistbox.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx index 139975752544..5eafd3acbd40 100644 --- a/svtools/source/contnr/treelistbox.cxx +++ b/svtools/source/contnr/treelistbox.cxx @@ -4079,13 +4079,9 @@ void SvTreeListBox::FillAccessibleEntryStateSet( SvTreeListEntry* pEntry, ::utl: rStateSet.AddState( AccessibleStateType::ENABLED ); rStateSet.AddState( AccessibleStateType::FOCUSABLE ); rStateSet.AddState( AccessibleStateType::SELECTABLE ); - SvViewDataEntry* pViewDataNewCur = 0; - if( pEntry ) - { - pViewDataNewCur = GetViewDataEntry(pEntry); - if (pViewDataNewCur && pViewDataNewCur->HasFocus()) - rStateSet.AddState( AccessibleStateType::FOCUSED ); - } + SvViewDataEntry* pViewDataNewCur = GetViewDataEntry(pEntry); + if (pViewDataNewCur && pViewDataNewCur->HasFocus()) + rStateSet.AddState( AccessibleStateType::FOCUSED ); } } |