From 87d368642c536880bd313a5993c30bfb9c250e9d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 3 May 2022 13:37:34 +0200 Subject: Just use Any ctor instead of makeAny in toolkit Change-Id: I55115f115e98b00e199007da5c6d9ea44cf2bab0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133756 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- toolkit/source/controls/animatedimages.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'toolkit/source/controls/animatedimages.cxx') diff --git a/toolkit/source/controls/animatedimages.cxx b/toolkit/source/controls/animatedimages.cxx index 8626bdd45156..99fd5df859ae 100644 --- a/toolkit/source/controls/animatedimages.cxx +++ b/toolkit/source/controls/animatedimages.cxx @@ -315,19 +315,19 @@ namespace toolkit { switch ( i_propertyId ) { case BASEPROPERTY_DEFAULTCONTROL: - return makeAny( OUString("com.sun.star.awt.AnimatedImagesControl") ); + return Any( OUString("com.sun.star.awt.AnimatedImagesControl") ); case BASEPROPERTY_BORDER: - return makeAny( css::awt::VisualEffect::NONE ); + return Any( css::awt::VisualEffect::NONE ); case BASEPROPERTY_STEP_TIME: - return makeAny( sal_Int32(100) ); + return Any( sal_Int32(100) ); case BASEPROPERTY_AUTO_REPEAT: - return makeAny( true ); + return Any( true ); case BASEPROPERTY_IMAGE_SCALE_MODE: - return makeAny( ImageScaleMode::NONE ); + return Any( ImageScaleMode::NONE ); default: return UnoControlModel::ImplGetDefaultValue( i_propertyId ); @@ -352,7 +352,7 @@ namespace toolkit { void SAL_CALL AnimatedImagesControlModel::setStepTime( ::sal_Int32 i_stepTime ) { - setPropertyValue( GetPropertyName( BASEPROPERTY_STEP_TIME ), makeAny( i_stepTime ) ); + setPropertyValue( GetPropertyName( BASEPROPERTY_STEP_TIME ), Any( i_stepTime ) ); } @@ -366,7 +366,7 @@ namespace toolkit { void SAL_CALL AnimatedImagesControlModel::setAutoRepeat( sal_Bool i_autoRepeat ) { - setPropertyValue( GetPropertyName( BASEPROPERTY_AUTO_REPEAT ), makeAny( i_autoRepeat ) ); + setPropertyValue( GetPropertyName( BASEPROPERTY_AUTO_REPEAT ), Any( i_autoRepeat ) ); } @@ -380,7 +380,7 @@ namespace toolkit { void SAL_CALL AnimatedImagesControlModel::setScaleMode( ::sal_Int16 i_scaleMode ) { - setPropertyValue( GetPropertyName( BASEPROPERTY_IMAGE_SCALE_MODE ), makeAny( i_scaleMode ) ); + setPropertyValue( GetPropertyName( BASEPROPERTY_IMAGE_SCALE_MODE ), Any( i_scaleMode ) ); } -- cgit