summaryrefslogtreecommitdiff
path: root/toolkit/source/controls
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/source/controls')
-rw-r--r--toolkit/source/controls/unocontrol.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/toolkit/source/controls/unocontrol.cxx b/toolkit/source/controls/unocontrol.cxx
index 4aecd503cb1b..24a2eea17bed 100644
--- a/toolkit/source/controls/unocontrol.cxx
+++ b/toolkit/source/controls/unocontrol.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unocontrol.cxx,v $
*
- * $Revision: 1.29 $
+ * $Revision: 1.30 $
*
- * last change: $Author: rt $ $Date: 2004-05-07 16:17:20 $
+ * last change: $Author: pjunck $ $Date: 2004-10-22 11:36:32 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -185,9 +185,9 @@ static Sequence< ::rtl::OUString> lcl_ImplGetPropertyNames( const Reference< XMu
Sequence< Property> aProps = xPSInf->getProperties();
sal_Int32 nLen = aProps.getLength();
aNames = Sequence< ::rtl::OUString>( nLen );
- ::rtl::OUString* pNames = aNames.getArray() + nLen - 1;
- const Property* pProps = aProps.getConstArray() + nLen - 1;
- for ( sal_uInt32 n = nLen; n; --n, --pProps, --pNames)
+ ::rtl::OUString* pNames = aNames.getArray();
+ const Property* pProps = aProps.getConstArray();
+ for ( sal_uInt32 n = 0; n < nLen; ++n, ++pProps, ++pNames)
*pNames = pProps->Name;
}
return aNames;