From 5c44484b924a3aa8a7b39a0f31413a307d57906b Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Tue, 25 Mar 2003 17:05:07 +0000 Subject: MWS_SRX644: migrate branch mws_srx644 -> HEAD --- forms/source/component/Hidden.cxx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'forms/source/component/Hidden.cxx') diff --git a/forms/source/component/Hidden.cxx b/forms/source/component/Hidden.cxx index ce6fb93e510b..1607de4c5d76 100644 --- a/forms/source/component/Hidden.cxx +++ b/forms/source/component/Hidden.cxx @@ -2,9 +2,9 @@ * * $RCSfile: Hidden.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: fs $ $Date: 2002-12-02 09:56:32 $ + * last change: $Author: hr $ $Date: 2003-03-25 18:01:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -196,11 +196,9 @@ void OHiddenModel::fillProperties( //------------------------------------------------------------------------------ StringSequence SAL_CALL OHiddenModel::getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException) { - StringSequence aSupported = OControlModel::getSupportedServiceNames(); - aSupported.realloc(aSupported.getLength() + 1); - - ::rtl::OUString* pArray = aSupported.getArray(); - pArray[aSupported.getLength()-1] = FRM_SUN_COMPONENT_HIDDENCONTROL; + StringSequence aSupported( 2 ); + aSupported[ 0 ] = FRM_SUN_COMPONENT_HIDDENCONTROL; + aSupported[ 1 ] = FRM_SUN_FORMCOMPONENT; return aSupported; } -- cgit