diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:33:43 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:36:28 +0200 |
commit | b0d9184ad2dab26e7ee17d8c0ace9f5e5e753026 (patch) | |
tree | 9a0161269ba032520c25e2626b8b5ece05160a17 /svtools/source/uno | |
parent | 94da7fda53562263f960c4ba11644fee7292c2d8 (diff) |
loplugin:simplifybool
Change-Id: I3a5554b73c6e9f39a4a903eecf6c59bd3a9a9883
Diffstat (limited to 'svtools/source/uno')
-rw-r--r-- | svtools/source/uno/toolboxcontroller.cxx | 2 | ||||
-rw-r--r-- | svtools/source/uno/treecontrolpeer.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/uno/toolboxcontroller.cxx b/svtools/source/uno/toolboxcontroller.cxx index 48b9d5a575d0..d8bdc68bb902 100644 --- a/svtools/source/uno/toolboxcontroller.cxx +++ b/svtools/source/uno/toolboxcontroller.cxx @@ -776,7 +776,7 @@ void ToolboxController::enable( bool bEnable ) sal_uInt16 nItemId = 0; if( getToolboxId( nItemId, &pToolBox ) ) { - pToolBox->EnableItem( nItemId, bEnable ? true : false ); + pToolBox->EnableItem( nItemId, bEnable ); } } diff --git a/svtools/source/uno/treecontrolpeer.cxx b/svtools/source/uno/treecontrolpeer.cxx index 1a6f0ff0ba23..00efbd5d4ac2 100644 --- a/svtools/source/uno/treecontrolpeer.cxx +++ b/svtools/source/uno/treecontrolpeer.cxx @@ -506,7 +506,7 @@ void TreeControlPeer::ChangeNodesSelection( const Any& rSelection, bool bSelect, while( nCount-- ) { UnoTreeListEntry* pEntry = getEntry( *pNodes++ ); - rTree.Select( pEntry, bSelect ? true : false ); + rTree.Select( pEntry, bSelect ); } } } @@ -1329,7 +1329,7 @@ void TreeControlPeer::setProperty( const OUString& PropertyName, const Any& aVal { bool bEnabled = false; if( aValue >>= bEnabled ) - rTree.EnableInplaceEditing( bEnabled ? true : false ); + rTree.EnableInplaceEditing( bEnabled ); break; } case BASEPROPERTY_TREE_INVOKESSTOPNODEEDITING: |