diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-07-16 13:55:42 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-07-16 14:00:21 +0200 |
commit | 6a6fad992ecbc90f8280e125a3680278559693b2 (patch) | |
tree | 8aec209f23616bf675d9c0c016db1c8f9461dae8 /svtools/source/uno/treecontrolpeer.cxx | |
parent | 96839e398c980f4b9ac3a348ac7f7af4f5218336 (diff) |
loplugin:simplifybool
Change-Id: Ic1bfcea9deab50c3c61e5c45525c5b9a09619d2c
Diffstat (limited to 'svtools/source/uno/treecontrolpeer.cxx')
-rw-r--r-- | svtools/source/uno/treecontrolpeer.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svtools/source/uno/treecontrolpeer.cxx b/svtools/source/uno/treecontrolpeer.cxx index 6ec90e45713a..26cc5b4ebd6e 100644 --- a/svtools/source/uno/treecontrolpeer.cxx +++ b/svtools/source/uno/treecontrolpeer.cxx @@ -778,7 +778,7 @@ sal_Bool SAL_CALL TreeControlPeer::isNodeExpanded( const Reference< XTreeNode >& UnoTreeListBoxImpl& rTree = getTreeListBoxOrThrow(); UnoTreeListEntry* pEntry = getEntry( xNode ); - return ( pEntry && rTree.IsExpanded( pEntry ) ) ? sal_True : sal_False; + return pEntry && rTree.IsExpanded( pEntry ); } @@ -809,7 +809,7 @@ sal_Bool SAL_CALL TreeControlPeer::isNodeVisible( const Reference< XTreeNode >& UnoTreeListBoxImpl& rTree = getTreeListBoxOrThrow(); UnoTreeListEntry* pEntry = getEntry( xNode ); - return ( pEntry && rTree.IsEntryVisible( pEntry ) ) ? sal_True : sal_False; + return pEntry && rTree.IsEntryVisible( pEntry ); } @@ -906,7 +906,7 @@ sal_Bool SAL_CALL TreeControlPeer::isEditing( ) throw (RuntimeException, std::e SolarMutexGuard aGuard; UnoTreeListBoxImpl& rTree = getTreeListBoxOrThrow(); - return rTree.IsEditingActive() ? sal_True : sal_False; + return rTree.IsEditingActive(); } @@ -1406,15 +1406,15 @@ Any TreeControlPeer::getProperty( const OUString& PropertyName ) throw(RuntimeEx case BASEPROPERTY_TREE_DATAMODEL: return Any( mxDataModel ); case BASEPROPERTY_TREE_EDITABLE: - return Any( rTree.IsInplaceEditingEnabled() ? sal_True : sal_False ); + return Any( rTree.IsInplaceEditingEnabled() ); case BASEPROPERTY_TREE_INVOKESSTOPNODEEDITING: return Any( sal_True ); // @todo case BASEPROPERTY_TREE_ROOTDISPLAYED: return Any( mbIsRootDisplayed ); case BASEPROPERTY_TREE_SHOWSHANDLES: - return Any( (rTree.GetStyle() & WB_HASLINES) != 0 ? sal_True : sal_False ); + return Any( (rTree.GetStyle() & WB_HASLINES) != 0 ); case BASEPROPERTY_TREE_SHOWSROOTHANDLES: - return Any( (rTree.GetStyle() & WB_HASLINESATROOT) != 0 ? sal_True : sal_False ); + return Any( (rTree.GetStyle() & WB_HASLINESATROOT) != 0 ); } } return VCLXWindow::getProperty( PropertyName ); |