Kaydet (Commit) 5456d596 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:simplifybool

Change-Id: Idab14666c3ffdc6c1a20e14bd1a7745a844468a1
üst 139acde5
...@@ -179,7 +179,7 @@ void SFTreeListBox::Init( const OUString& language ) ...@@ -179,7 +179,7 @@ void SFTreeListBox::Init( const OUString& language )
rootNode.set( xFac->createView( rootNode.set( xFac->createView(
browse::BrowseNodeFactoryViewTypes::MACROORGANIZER ) ); browse::BrowseNodeFactoryViewTypes::MACROORGANIZER ) );
if ( rootNode.is() && rootNode->hasChildNodes() == sal_True ) if ( rootNode.is() && rootNode->hasChildNodes() )
{ {
children = rootNode->getChildNodes(); children = rootNode->getChildNodes();
} }
...@@ -859,7 +859,7 @@ void SvxScriptOrgDialog::createEntry( SvTreeListEntry* pEntry ) ...@@ -859,7 +859,7 @@ void SvxScriptOrgDialog::createEntry( SvTreeListEntry* pEntry )
// no children => ok to create Parcel1 or Script1 without checking // no children => ok to create Parcel1 or Script1 without checking
try try
{ {
if( node->hasChildNodes() == sal_False ) if( !node->hasChildNodes() )
{ {
aNewName = aNewStdName + OUString::number(i); aNewName = aNewStdName + OUString::number(i);
bValid = true; bValid = true;
...@@ -1157,7 +1157,7 @@ OUString SvxScriptOrgDialog::getListOfChildren( Reference< browse::XBrowseNode > ...@@ -1157,7 +1157,7 @@ OUString SvxScriptOrgDialog::getListOfChildren( Reference< browse::XBrowseNode >
try try
{ {
if ( node->hasChildNodes() == sal_True ) if ( node->hasChildNodes() )
{ {
Sequence< Reference< browse::XBrowseNode > > children Sequence< Reference< browse::XBrowseNode > > children
= node->getChildNodes(); = node->getChildNodes();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment