stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r555006 - /incubator/stdcxx/trunk/src/catalog.cpp
Date Tue, 10 Jul 2007 16:55:04 GMT
Author: faridz
Date: Tue Jul 10 09:55:02 2007
New Revision: 555006

URL: http://svn.apache.org/viewvc?view=rev&rev=555006
Log:
2007-07-10 Farid Zaripov <Farid_Zaripov@epam.com>

	* catalog.cpp (catopen): while() loop replaced to for() loop
	with checking for max iterations.

Modified:
    incubator/stdcxx/trunk/src/catalog.cpp

Modified: incubator/stdcxx/trunk/src/catalog.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/src/catalog.cpp?view=diff&rev=555006&r1=555005&r2=555006
==============================================================================
--- incubator/stdcxx/trunk/src/catalog.cpp (original)
+++ incubator/stdcxx/trunk/src/catalog.cpp Tue Jul 10 09:55:02 2007
@@ -95,8 +95,7 @@
 
         if (cat && cat->good()) {
             CatVector::size_type i = 0;
-            while (__rw_catlist[i] != 0)
-                i++;
+            for (; i < __rw_catlist.size() && __rw_catlist[i]; ++i) ;
             if (__rw_catlist.size() == i)
                 __rw_catlist.resize(__rw_catlist.size() * 2,0);
             __rw_catlist[i] = cat;



Mime
View raw message