Kaydet (Commit) f1ba393a authored tarafından Arkadiy Illarionov's avatar Arkadiy Illarionov Kaydeden (comit) Noel Grandin

clang-tidy modernize-avoid-c-arrays in accessibility

Change-Id: Ic9c759fa78d47f0a8b989464ce1f65438da9064b
Reviewed-on: https://gerrit.libreoffice.org/70478
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 213be7a2
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment