diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-07 11:57:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-07 12:19:26 +0000 |
commit | 6aeb4981f4c92b1aa1059398d125a5976195b326 (patch) | |
tree | c17e35c5e0648505d71404edf88b0bd7961cf4e9 /sc | |
parent | 4ff02c40b94592cc72540433935ffe259988e979 (diff) |
coverity#705834 Dereference before null check
Change-Id: I130042c2ff5dbaf0afb94d3600c9573d348b1df3
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleText.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleText.cxx b/sc/source/ui/Accessibility/AccessibleText.cxx index 3c02c893e233..b1a39c810fb4 100644 --- a/sc/source/ui/Accessibility/AccessibleText.cxx +++ b/sc/source/ui/Accessibility/AccessibleText.cxx @@ -1387,9 +1387,8 @@ SvxTextForwarder* ScAccessiblePreviewHeaderCellTextData::GetTextForwarder() if (bDataValid) return pForwarder; - if (!maText.isEmpty() && pEditEngine) + if (!maText.isEmpty()) { - if ( mpViewShell ) { Size aOutputSize; @@ -1408,8 +1407,7 @@ SvxTextForwarder* ScAccessiblePreviewHeaderCellTextData::GetTextForwarder() bDataValid = true; - if (pEditEngine) - pEditEngine->SetNotifyHdl( LINK(this, ScAccessibleCellTextData, NotifyHdl) ); + pEditEngine->SetNotifyHdl( LINK(this, ScAccessibleCellTextData, NotifyHdl) ); return pForwarder; } |