summaryrefslogtreecommitdiff
path: root/editeng/source/accessibility
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-05-04 12:12:32 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-05-04 15:26:52 +0200
commitf1a9e1d8139db4461c1a1c5fee7b1131ce99eece (patch)
treefbcd30ae295594894b67150a0126b2aa14c51cca /editeng/source/accessibility
parenta1c62cfc605a35f82dba4d9bfa47ab065e47cd99 (diff)
Just use Any ctor instead of makeAny in editeng
Change-Id: Ic6a392ce006c9348abc28a5940c4ee0425e5b990 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133820 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'editeng/source/accessibility')
-rw-r--r--editeng/source/accessibility/AccessibleEditableTextPara.cxx8
-rw-r--r--editeng/source/accessibility/AccessibleImageBullet.cxx8
2 files changed, 8 insertions, 8 deletions
diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
index cf605db6c4eb..de3befd289b1 100644
--- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx
+++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
@@ -270,8 +270,8 @@ namespace accessibility
{
}
// index and therefore description changed
- FireEvent( AccessibleEventId::DESCRIPTION_CHANGED, uno::makeAny( getAccessibleDescription() ), aOldDesc );
- FireEvent( AccessibleEventId::NAME_CHANGED, uno::makeAny( getAccessibleName() ), aOldName );
+ FireEvent( AccessibleEventId::DESCRIPTION_CHANGED, uno::Any( getAccessibleDescription() ), aOldDesc );
+ FireEvent( AccessibleEventId::NAME_CHANGED, uno::Any( getAccessibleName() ), aOldName );
}
}
catch (const uno::Exception&) // optional behaviour
@@ -572,7 +572,7 @@ namespace accessibility
!mxStateSet->contains(nStateId) )
{
mxStateSet->AddState( nStateId );
- FireEvent( AccessibleEventId::STATE_CHANGED, uno::makeAny( nStateId ) );
+ FireEvent( AccessibleEventId::STATE_CHANGED, uno::Any( nStateId ) );
}
}
@@ -582,7 +582,7 @@ namespace accessibility
mxStateSet->contains(nStateId) )
{
mxStateSet->RemoveState( nStateId );
- FireEvent( AccessibleEventId::STATE_CHANGED, uno::Any(), uno::makeAny( nStateId ) );
+ FireEvent( AccessibleEventId::STATE_CHANGED, uno::Any(), uno::Any( nStateId ) );
}
}
diff --git a/editeng/source/accessibility/AccessibleImageBullet.cxx b/editeng/source/accessibility/AccessibleImageBullet.cxx
index fbe9bee21571..11324648722d 100644
--- a/editeng/source/accessibility/AccessibleImageBullet.cxx
+++ b/editeng/source/accessibility/AccessibleImageBullet.cxx
@@ -431,7 +431,7 @@ namespace accessibility
!mxStateSet->contains(nStateId) )
{
mxStateSet->AddState( nStateId );
- FireEvent( AccessibleEventId::STATE_CHANGED, uno::makeAny( nStateId ) );
+ FireEvent( AccessibleEventId::STATE_CHANGED, uno::Any( nStateId ) );
}
}
@@ -441,7 +441,7 @@ namespace accessibility
mxStateSet->contains(nStateId) )
{
mxStateSet->RemoveState( nStateId );
- FireEvent( AccessibleEventId::STATE_CHANGED, uno::Any(), uno::makeAny( nStateId ) );
+ FireEvent( AccessibleEventId::STATE_CHANGED, uno::Any(), uno::Any( nStateId ) );
}
}
@@ -468,8 +468,8 @@ namespace accessibility
if( nOldIndex != nIndex )
{
// index and therefore description changed
- FireEvent( AccessibleEventId::DESCRIPTION_CHANGED, uno::makeAny( getAccessibleDescription() ), aOldDesc );
- FireEvent( AccessibleEventId::NAME_CHANGED, uno::makeAny( getAccessibleName() ), aOldName );
+ FireEvent( AccessibleEventId::DESCRIPTION_CHANGED, uno::Any( getAccessibleDescription() ), aOldDesc );
+ FireEvent( AccessibleEventId::NAME_CHANGED, uno::Any( getAccessibleName() ), aOldName );
}
}
catch( const uno::Exception& ) {} // optional behaviour