correct getSupportedServiceNames - one of the names was a double

This commit is contained in:
Frank Schönheit 2001-01-04 15:28:08 +00:00
parent fa4fdaaeb7
commit a8028e98cb

View File

@ -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;
}