Tag: cws_src680_oj17
User: oj      
Date: 06/03/09 02:29:39

Modified:
 /dba/connectivity/source/sdbcx/
  VCollection.cxx

Log:
 #133019# ensure that the string array has the correct size

File Changes:

Directory: /dba/connectivity/source/sdbcx/
==========================================

File [changed]: VCollection.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/sdbcx/VCollection.cxx?r1=1.37&r2=1.37.80.1
Delta lines:  +6 -6
-------------------
--- VCollection.cxx     8 Sep 2005 07:42:34 -0000       1.37
+++ VCollection.cxx     9 Mar 2006 10:29:36 -0000       1.37.80.1
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: VCollection.cxx,v $
  *
- *  $Revision: 1.37 $
+ *  $Revision: 1.37.80.1 $
  *
- *  last change: $Author: rt $ $Date: 2005/09/08 07:42:34 $
+ *  last change: $Author: oj $ $Date: 2006/03/09 10:29:36 $
  *
  *  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 @@
                // 
-----------------------------------------------------------------------------
                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;




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to