summaryrefslogtreecommitdiff
path: root/connectivity/source/sdbcx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-04-19 12:17:12 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-04-19 12:17:12 +0000
commit0714328a70fc72529150dee37f810330a9501dab (patch)
treeaf1451822c1aec6ab0f7897e3ce72e99b90f2b86 /connectivity/source/sdbcx
parentbdbf92bb31ba4a852e59675c1ce91b8e0c034889 (diff)
INTEGRATION: CWS oj17 (1.37.80); FILE MERGED
2006/03/09 10:29:36 oj 1.37.80.1: #133019# ensure that the string array has the correct size
Diffstat (limited to 'connectivity/source/sdbcx')
-rw-r--r--connectivity/source/sdbcx/VCollection.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/connectivity/source/sdbcx/VCollection.cxx b/connectivity/source/sdbcx/VCollection.cxx
index d701910119da..cb24098af02f 100644
--- a/connectivity/source/sdbcx/VCollection.cxx
+++ b/connectivity/source/sdbcx/VCollection.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: VCollection.cxx,v $
*
- * $Revision: 1.37 $
+ * $Revision: 1.38 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 07:42:34 $
+ * last change: $Author: hr $ $Date: 2006-04-19 13:17:12 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -162,11 +162,11 @@ namespace
// -----------------------------------------------------------------------------
virtual Sequence< ::rtl::OUString > getElementNames()
{
- sal_Int32 nLen = size();
- Sequence< ::rtl::OUString > aNameList(nLen);
+ Sequence< ::rtl::OUString > aNameList(m_aElements.size());
::rtl::OUString* pStringArray = aNameList.getArray();
- for(typename ::std::vector< ObjectIter >::const_iterator aIter = m_aElements.begin(); aIter != m_aElements.end();++aIter,++pStringArray)
+ typename ::std::vector< ObjectIter >::const_iterator aEnd = m_aElements.end();
+ for(typename ::std::vector< ObjectIter >::const_iterator aIter = m_aElements.begin(); aIter != aEnd;++aIter,++pStringArray)
*pStringArray = (*aIter)->first;
return aNameList;