diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:30:10 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:30:10 +0100 |
commit | b72102d15286004ce47c2a4d7203ac42bc33bdd1 (patch) | |
tree | 34a6c2a7b8ac8e2852b4bdbba20cc38be51a5cc4 /accessibility/source/standard/vclxaccessiblelist.cxx | |
parent | 420ba81517f48df61ab66f5377795a5568d1f47c (diff) |
More loplugin:cstylecast: accessibility
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: I4c85e1362fbe5edf50ebf75955e272b4f6f162e2
Diffstat (limited to 'accessibility/source/standard/vclxaccessiblelist.cxx')
-rw-r--r-- | accessibility/source/standard/vclxaccessiblelist.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/accessibility/source/standard/vclxaccessiblelist.cxx b/accessibility/source/standard/vclxaccessiblelist.cxx index 4828649ac699..c09db9eb1ad3 100644 --- a/accessibility/source/standard/vclxaccessiblelist.cxx +++ b/accessibility/source/standard/vclxaccessiblelist.cxx @@ -740,7 +740,7 @@ void SAL_CALL VCLXAccessibleList::selectAccessibleChild( sal_Int32 nChildIndex ) { checkSelection_Impl(nChildIndex,*m_pListBoxHelper,false); - m_pListBoxHelper->SelectEntryPos( (sal_uInt16)nChildIndex ); + m_pListBoxHelper->SelectEntryPos( static_cast<sal_uInt16>(nChildIndex) ); // call the select handler, don't handle events in this time m_bDisableProcessEvent = true; m_pListBoxHelper->Select(); @@ -763,7 +763,7 @@ sal_Bool SAL_CALL VCLXAccessibleList::isAccessibleChildSelected( sal_Int32 nChil { checkSelection_Impl(nChildIndex,*m_pListBoxHelper,false); - bRet = m_pListBoxHelper->IsEntryPosSelected( (sal_uInt16)nChildIndex ); + bRet = m_pListBoxHelper->IsEntryPosSelected( static_cast<sal_uInt16>(nChildIndex) ); } return bRet; } @@ -831,7 +831,7 @@ Reference< XAccessible > SAL_CALL VCLXAccessibleList::getSelectedAccessibleChild if ( m_pListBoxHelper ) { checkSelection_Impl(nSelectedChildIndex,*m_pListBoxHelper,true); - return getAccessibleChild( m_pListBoxHelper->GetSelectedEntryPos( (sal_uInt16)nSelectedChildIndex ) ); + return getAccessibleChild( m_pListBoxHelper->GetSelectedEntryPos( static_cast<sal_uInt16>(nSelectedChildIndex) ) ); } return nullptr; @@ -849,7 +849,7 @@ void SAL_CALL VCLXAccessibleList::deselectAccessibleChild( sal_Int32 nSelectedCh { checkSelection_Impl(nSelectedChildIndex,*m_pListBoxHelper,false); - m_pListBoxHelper->SelectEntryPos( (sal_uInt16)nSelectedChildIndex, false ); + m_pListBoxHelper->SelectEntryPos( static_cast<sal_uInt16>(nSelectedChildIndex), false ); // call the select handler, don't handle events in this time m_bDisableProcessEvent = true; m_pListBoxHelper->Select(); |