[Libreoffice-commits] core.git: accessibility/source
Arkadiy Illarionov (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 3 08:02:36 UTC 2019
accessibility/source/standard/accessiblemenubasecomponent.cxx | 4 +++-
accessibility/source/standard/vclxaccessibletoolboxitem.cxx | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
New commits:
commit f1ba393af4f08f8502906c9221f8b6f1be2a7bad
Author: Arkadiy Illarionov <qarkai at gmail.com>
AuthorDate: Wed Apr 10 00:22:00 2019 +0300
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri May 3 10:01:28 2019 +0200
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 at collabora.co.uk>
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;
More information about the Libreoffice-commits
mailing list