From a8028e98cba9882e72884b1cec8230ec73eb2c3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Sch=C3=B6nheit?= Date: Thu, 4 Jan 2001 15:28:08 +0000 Subject: [PATCH] correct getSupportedServiceNames - one of the names was a double --- forms/source/component/Hidden.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/forms/source/component/Hidden.cxx b/forms/source/component/Hidden.cxx index 07955f48757b..838b5ada2674 100644 --- a/forms/source/component/Hidden.cxx +++ b/forms/source/component/Hidden.cxx @@ -2,9 +2,9 @@ * * $RCSfile: Hidden.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: oj $ $Date: 2000-11-23 08:48:15 $ + * last change: $Author: fs $ $Date: 2001-01-04 16:28:08 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -177,10 +177,9 @@ void OHiddenModel::fillProperties( StringSequence SAL_CALL OHiddenModel::getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException) { StringSequence aSupported = OControlModel::getSupportedServiceNames(); - aSupported.realloc(aSupported.getLength() + 2); + aSupported.realloc(aSupported.getLength() + 1); ::rtl::OUString* pArray = aSupported.getArray(); - pArray[aSupported.getLength()-2] = ::rtl::OUString::createFromAscii("com.sun.star.form.FormComponent"); pArray[aSupported.getLength()-1] = FRM_SUN_COMPONENT_HIDDENCONTROL; return aSupported; }