From f1ba393af4f08f8502906c9221f8b6f1be2a7bad Mon Sep 17 00:00:00 2001 From: Arkadiy Illarionov Date: Wed, 10 Apr 2019 00:22:00 +0300 Subject: clang-tidy modernize-avoid-c-arrays in accessibility Change-Id: Ic9c759fa78d47f0a8b989464ce1f65438da9064b Reviewed-on: https://gerrit.libreoffice.org/70478 Tested-by: Jenkins Reviewed-by: Noel Grandin --- accessibility/source/standard/accessiblemenubasecomponent.cxx | 4 +++- accessibility/source/standard/vclxaccessibletoolboxitem.cxx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'accessibility') diff --git a/accessibility/source/standard/accessiblemenubasecomponent.cxx b/accessibility/source/standard/accessiblemenubasecomponent.cxx index 2534eb40eda7..6f0df60870e2 100644 --- a/accessibility/source/standard/accessiblemenubasecomponent.cxx +++ b/accessibility/source/standard/accessiblemenubasecomponent.cxx @@ -32,6 +32,8 @@ #include #include +#include + using namespace ::com::sun::star; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::uno; @@ -114,7 +116,7 @@ void OAccessibleMenuBaseComponent::SetEnabled( bool bEnabled ) { nStateType = AccessibleStateType::VISIBLE; } - Any aOldValue[2], aNewValue[2]; + std::array aOldValue, aNewValue; if ( m_bEnabled ) { aOldValue[0] <<= AccessibleStateType::SENSITIVE; diff --git a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx index e9bc3b34ed9d..4b90f7bcd259 100644 --- a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx +++ b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx @@ -47,6 +47,8 @@ #include +#include + // class VCLXAccessibleToolBoxItem ------------------------------------------ using namespace ::com::sun::star::accessibility; @@ -217,7 +219,7 @@ void VCLXAccessibleToolBoxItem::NotifyChildEvent( const Reference< XAccessible > void VCLXAccessibleToolBoxItem::ToggleEnableState() { - Any aOldValue[2], aNewValue[2]; + std::array aOldValue, aNewValue; if ( m_pToolBox->IsItemEnabled( m_nItemId ) ) { aNewValue[0] <<= AccessibleStateType::SENSITIVE; -- cgit