diff options
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; |