diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-04-10 00:22:00 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-05-03 10:01:28 +0200 |
commit | f1ba393af4f08f8502906c9221f8b6f1be2a7bad (patch) | |
tree | fe0978eebfe40ce8fab2b3e05bc2f07c35076a91 /accessibility | |
parent | Fix loop condition (diff) | |
download | core-f1ba393af4f08f8502906c9221f8b6f1be2a7bad.tar.gz core-f1ba393af4f08f8502906c9221f8b6f1be2a7bad.zip |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/standard/accessiblemenubasecomponent.cxx | 4 | ||||
-rw-r--r-- | accessibility/source/standard/vclxaccessibletoolboxitem.cxx | 4 |
2 files changed, 6 insertions, 2 deletions
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 <vcl/window.hxx> #include <vcl/menu.hxx> +#include <array> + 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<Any, 2> 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 <com/sun/star/accessibility/XAccessibleSelection.hpp> +#include <array> + // 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<Any, 2> aOldValue, aNewValue; if ( m_pToolBox->IsItemEnabled( m_nItemId ) ) { aNewValue[0] <<= AccessibleStateType::SENSITIVE; |