From 742b8befecbcfc0cfab87cfcd87c83b7d8ef32ab Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Fri, 5 Nov 2021 22:38:31 +0100 Subject: Replace some macros in forms part 7 Remove BEGIN_DESCRIBE_PROPERTIES Change-Id: Ic1f52f21037e890c4f7143a1283f34101dbb737a Change-Id: I1bd902af7f634bb70313dda72b7a008bdda38f75 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124782 Tested-by: Julien Nabet Reviewed-by: Julien Nabet --- forms/source/component/RadioButton.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'forms/source/component/RadioButton.cxx') diff --git a/forms/source/component/RadioButton.cxx b/forms/source/component/RadioButton.cxx index 43fe2d96e777..f07d9894e0aa 100644 --- a/forms/source/component/RadioButton.cxx +++ b/forms/source/component/RadioButton.cxx @@ -238,7 +238,10 @@ void ORadioButtonModel::setControlSource() void ORadioButtonModel::describeFixedProperties( Sequence< Property >& _rProps ) const { - BEGIN_DESCRIBE_PROPERTIES( 1, OReferenceValueComponent ) + OReferenceValueComponent::describeFixedProperties( _rProps ); + sal_Int32 nOldCount = _rProps.getLength(); + _rProps.realloc( nOldCount + 1); + css::beans::Property* pProperties = _rProps.getArray() + nOldCount; DECL_PROP1(TABINDEX, sal_Int16, BOUND); DBG_ASSERT( pProperties == _rProps.getArray() + _rProps.getLength(), "<...>::describeFixedProperties/getInfoHelper: forgot to adjust the count ?"); } -- cgit