diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-19 11:25:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-19 12:53:34 +0200 |
commit | 2e51afc77c0800dda6c09bb645d8962ae125b2ba (patch) | |
tree | 087dc79cce1eaeedb9556be0953bdda2e8954560 /basic/source/runtime/methods1.cxx | |
parent | 575b457d728531a1cfff95d2eea1887e09d79009 (diff) |
loplugin:comparisonwithconstant in basic
Change-Id: Ie34a17d2fb465ffbe675ba4e99917d23959f1fb5
Reviewed-on: https://gerrit.libreoffice.org/37809
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/source/runtime/methods1.cxx')
-rw-r--r-- | basic/source/runtime/methods1.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx index f3502fe3465a..021e7f21b950 100644 --- a/basic/source/runtime/methods1.cxx +++ b/basic/source/runtime/methods1.cxx @@ -125,7 +125,7 @@ RTLFUNC(CallByName) SbxObject* pObj = nullptr; if( pObjVar ) pObj = dynamic_cast<SbxObject*>( pObjVar ); - if( !pObj && pObjVar && nullptr != dynamic_cast<const SbxVariable*>( pObjVar) ) + if( !pObj && pObjVar && dynamic_cast<const SbxVariable*>( pObjVar) != nullptr ) { SbxBase* pObjVarObj = static_cast<SbxVariable*>(pObjVar)->GetObject(); pObj = dynamic_cast<SbxObject*>( pObjVarObj ); @@ -957,7 +957,7 @@ RTLFUNC(FindPropertyObject) { pObj = dynamic_cast<SbxObject*>( pObjVar ); } - if( !pObj && pObjVar && nullptr != dynamic_cast<const SbxVariable*>( pObjVar) ) + if( !pObj && pObjVar && dynamic_cast<const SbxVariable*>( pObjVar) != nullptr ) { SbxBase* pObjVarObj = static_cast<SbxVariable*>(pObjVar)->GetObject(); pObj = dynamic_cast<SbxObject*>( pObjVarObj ); |