diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-07-16 13:49:17 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-07-16 14:00:16 +0200 |
commit | 5456d59651c65165038c9cee82e7970f44426e36 (patch) | |
tree | 34e757688b005d738927a5a297bcee9d057d2e51 /cui/source | |
parent | 139acde5dc900b8b1e44da09a0c66d285eba860f (diff) |
loplugin:simplifybool
Change-Id: Idab14666c3ffdc6c1a20e14bd1a7745a844468a1
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/dialogs/scriptdlg.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx index 4bddaae613f9..3e90388a3e27 100644 --- a/cui/source/dialogs/scriptdlg.cxx +++ b/cui/source/dialogs/scriptdlg.cxx @@ -179,7 +179,7 @@ void SFTreeListBox::Init( const OUString& language ) rootNode.set( xFac->createView( browse::BrowseNodeFactoryViewTypes::MACROORGANIZER ) ); - if ( rootNode.is() && rootNode->hasChildNodes() == sal_True ) + if ( rootNode.is() && rootNode->hasChildNodes() ) { children = rootNode->getChildNodes(); } @@ -859,7 +859,7 @@ void SvxScriptOrgDialog::createEntry( SvTreeListEntry* pEntry ) // no children => ok to create Parcel1 or Script1 without checking try { - if( node->hasChildNodes() == sal_False ) + if( !node->hasChildNodes() ) { aNewName = aNewStdName + OUString::number(i); bValid = true; @@ -1157,7 +1157,7 @@ OUString SvxScriptOrgDialog::getListOfChildren( Reference< browse::XBrowseNode > try { - if ( node->hasChildNodes() == sal_True ) + if ( node->hasChildNodes() ) { Sequence< Reference< browse::XBrowseNode > > children = node->getChildNodes(); |