diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-03-25 17:05:07 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-03-25 17:05:07 +0000 |
commit | 5c44484b924a3aa8a7b39a0f31413a307d57906b (patch) | |
tree | b500553af781549a310da857036097f1c152ec17 /forms/source/component/Hidden.cxx | |
parent | 29a4847890f529dad10e2d9f0334eeb6c919f0c7 (diff) |
MWS_SRX644: migrate branch mws_srx644 -> HEAD
Diffstat (limited to 'forms/source/component/Hidden.cxx')
-rw-r--r-- | forms/source/component/Hidden.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
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; } |