diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-06 10:16:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-06 10:28:47 +0100 |
commit | 819149fb1f71fc13ffdc288736ce65bb3c6c75d8 (patch) | |
tree | 55e663505dce8b7a36ec5aab1f8d6cc956522cf5 /basctl | |
parent | 00055d49f35bbabd46d00fefd395b46872ed45aa (diff) |
loplugin:collapseif in accessibility..cui
Change-Id: I1437b493f3289b4ac97d061bd71973580571e792
Reviewed-on: https://gerrit.libreoffice.org/62933
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/scriptdocument.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/basctl/source/basicide/scriptdocument.cxx b/basctl/source/basicide/scriptdocument.cxx index ac990c66890d..6eac332022bc 100644 --- a/basctl/source/basicide/scriptdocument.cxx +++ b/basctl/source/basicide/scriptdocument.cxx @@ -432,11 +432,8 @@ namespace basctl try { Reference< XLibraryContainer > xLibContainer = getLibraryContainer( _eType ); - if ( isValid() ) - { - if ( xLibContainer.is() ) - xContainer.set( xLibContainer->getByName( _rLibName ), UNO_QUERY_THROW ); - } + if ( isValid() && xLibContainer.is() ) + xContainer.set( xLibContainer->getByName( _rLibName ), UNO_QUERY_THROW ); if ( !xContainer.is() ) throw NoSuchElementException(); |