summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-03-10 20:57:57 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-03-10 22:15:00 +0000
commitcb00ae0a82cb50c7b951d7b3c4fe69339bad16ea (patch)
tree399e876ad517862b0192009895ed393eb360d43f /svtools
parentb20af8b684463674a0e25cff9db85bbb6acee44b (diff)
coverity#1355504 Dereference before null check
Change-Id: I1f19fa2b55054bff7bb7e34d8a07dcf29fd229be
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/iconviewimpl.cxx2
-rw-r--r--svtools/source/contnr/svimpbox.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/contnr/iconviewimpl.cxx b/svtools/source/contnr/iconviewimpl.cxx
index ca6696ae3b58..e361414a65da 100644
--- a/svtools/source/contnr/iconviewimpl.cxx
+++ b/svtools/source/contnr/iconviewimpl.cxx
@@ -508,7 +508,7 @@ bool IconViewImpl::KeyInput( const KeyEvent& rKEvt )
// if there is no next entry, take the current one
// this ensures that in case of _one_ entry in the list, this entry is selected when pressing
// the cursor key
- if ( !pNewCursor && pCursor )
+ if (!pNewCursor)
pNewCursor = pCursor;
if( pNewCursor )
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx
index d48f1125b80d..7ae23714cfe4 100644
--- a/svtools/source/contnr/svimpbox.cxx
+++ b/svtools/source/contnr/svimpbox.cxx
@@ -2149,7 +2149,7 @@ bool SvImpLBox::KeyInput( const KeyEvent& rKEvt)
// if there is no next entry, take the current one
// this ensures that in case of _one_ entry in the list, this entry is selected when pressing
// the cursor key
- if ( !pNewCursor && pCursor )
+ if (!pNewCursor)
pNewCursor = pCursor;
if( pNewCursor )