diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-07 11:19:09 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-07 15:47:24 +0100 |
commit | 148b9a23faf92c6b412d7d24baf22b8ed24503f4 (patch) | |
tree | 303d0da1aff60140bb3124635e718f5b1404c1ba /basctl | |
parent | 3e423ebe1cf7dfe64945bbe383908963e39dda65 (diff) |
coverity#1209554 Explicit null dereferenced
Change-Id: Iacf4373221b93a97e030b09501cc91589f2fdff7
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2b.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index c99b8654e8d0..20b46d0f0981 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -1136,7 +1136,6 @@ OUString EditorWindow::GetActualSubName( sal_uLong nLine ) for( sal_uInt16 i=0; i < pMethods->Count(); i++ ) { SbxVariable* p = PTR_CAST( SbMethod, pMethods->Get( i ) ); - OUString sName = p->GetName(); SbMethod* pMeth = p ? PTR_CAST( SbMethod, p ) : NULL; if( pMeth ) { @@ -1144,7 +1143,7 @@ OUString EditorWindow::GetActualSubName( sal_uLong nLine ) pMeth->GetLineRange(l1,l2); if( (l1 <= nLine+1) && (nLine+1 <= l2) ) { - return sName; + return pMeth->GetName(); } } } |