diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:13:22 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:13:22 +0100 |
commit | 75ca2d04abc96f88ee63852e070f84984f27ad3f (patch) | |
tree | 39be302f78a5c274df2d721cb1a3072644e7a964 /toolkit/source/controls/tree | |
parent | 8456c2ba408b3bed160d3e5f050738301b225bd5 (diff) |
More loplugin:cstylecast: toolkit
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files
Change-Id: Iaee0fee0cbc6e5311342b83d847cb89bd1056973
Diffstat (limited to 'toolkit/source/controls/tree')
-rw-r--r-- | toolkit/source/controls/tree/treedatamodel.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/toolkit/source/controls/tree/treedatamodel.cxx b/toolkit/source/controls/tree/treedatamodel.cxx index fd43049ca663..0c5cd4347b6b 100644 --- a/toolkit/source/controls/tree/treedatamodel.cxx +++ b/toolkit/source/controls/tree/treedatamodel.cxx @@ -325,7 +325,7 @@ void SAL_CALL MutableTreeNode::insertChildByIndex( sal_Int32 nChildIndex, const { ::osl::Guard< ::osl::Mutex > aGuard( maMutex ); - if( (nChildIndex < 0) || (nChildIndex > (sal_Int32)maChildren.size()) ) + if( (nChildIndex < 0) || (nChildIndex > static_cast<sal_Int32>(maChildren.size())) ) throw IndexOutOfBoundsException(); Reference< XTreeNode > xNode( xChildNode.get() ); @@ -349,7 +349,7 @@ void SAL_CALL MutableTreeNode::removeChildByIndex( sal_Int32 nChildIndex ) { ::osl::Guard< ::osl::Mutex > aGuard( maMutex ); - if( (nChildIndex < 0) || (nChildIndex >= (sal_Int32)maChildren.size()) ) + if( (nChildIndex < 0) || (nChildIndex >= static_cast<sal_Int32>(maChildren.size())) ) throw IndexOutOfBoundsException(); MutableTreeNodeRef xImpl; @@ -439,7 +439,7 @@ Reference< XTreeNode > SAL_CALL MutableTreeNode::getChildAt( sal_Int32 nChildInd { ::osl::Guard< ::osl::Mutex > aGuard( maMutex ); - if( (nChildIndex < 0) || (nChildIndex >= (sal_Int32)maChildren.size()) ) + if( (nChildIndex < 0) || (nChildIndex >= static_cast<sal_Int32>(maChildren.size())) ) throw IndexOutOfBoundsException(); return getReference( maChildren[nChildIndex].get() ); } @@ -447,7 +447,7 @@ Reference< XTreeNode > SAL_CALL MutableTreeNode::getChildAt( sal_Int32 nChildInd sal_Int32 SAL_CALL MutableTreeNode::getChildCount( ) { ::osl::Guard< ::osl::Mutex > aGuard( maMutex ); - return (sal_Int32)maChildren.size(); + return static_cast<sal_Int32>(maChildren.size()); } Reference< XTreeNode > SAL_CALL MutableTreeNode::getParent( ) |