Just use Any ctor instead of makeAny in accessibility

Change-Id: I7860a176bfd44d8f5071ece03229bc7f768d9d52
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133851
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2022-05-04 22:35:17 +02:00
parent b5ab864096
commit ffdad488a8

View File

@@ -2097,9 +2097,9 @@ void Document::handleSelectionChangeNotification()
xParagraph->notifyEvent(
css::accessibility::AccessibleEventId::
CARET_CHANGED,
css::uno::makeAny< ::sal_Int32 >(
css::uno::Any( ::sal_Int32 (
nNewLastPara == m_nSelectionLastPara
? m_nSelectionLastPos : 0),
? m_nSelectionLastPos : 0)),
css::uno::Any(nNewLastPos));
}
}
@@ -2216,7 +2216,7 @@ void Document::disposeParagraphs()
// static
css::uno::Any Document::mapFontColor(::Color const & rColor)
{
return css::uno::makeAny(rColor.GetRGBColor());
return css::uno::Any(rColor.GetRGBColor());
// FIXME keep transparency?
}