summaryrefslogtreecommitdiff
path: root/toolkit/source/controls
diff options
context:
space:
mode:
authorPascal Junck <pjunck@openoffice.org>2004-10-22 10:36:32 +0000
committerPascal Junck <pjunck@openoffice.org>2004-10-22 10:36:32 +0000
commita0b50ac4903d3ef4723c6573e26a561a2209a8c3 (patch)
tree9085a6f94114dfb82dfe7f637a6c831171c5a9a0 /toolkit/source/controls
parentc6c48206d0ffdd5f9dbb26395978e65ff26f7fbf (diff)
INTEGRATION: CWS dba17 (1.29.52); FILE MERGED
2004/09/08 13:35:49 fs 1.29.52.1: #i33728# BoundsChecker found a potential problem with a dangling pointer
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;