stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r525612 - /incubator/stdcxx/trunk/include/vector.cc
Date Wed, 04 Apr 2007 21:23:57 GMT
Author: sebor
Date: Wed Apr  4 14:23:56 2007
New Revision: 525612

URL: http://svn.apache.org/viewvc?view=rev&rev=525612
Log:
2007-04-04  Martin Sebor  <sebor@roguewave.com>

	STDCXX-385
	* vector.cc (_C_insert_range): Renamed a loop control variable
	to prevent clashing with another, and to silence a bogus HP
	cadvise error #2101: variable has already been declared in the
	current scope.

Modified:
    incubator/stdcxx/trunk/include/vector.cc

Modified: incubator/stdcxx/trunk/include/vector.cc
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/vector.cc?view=diff&rev=525612&r1=525611&r2=525612
==============================================================================
--- incubator/stdcxx/trunk/include/vector.cc (original)
+++ incubator/stdcxx/trunk/include/vector.cc Wed Apr  4 14:23:56 2007
@@ -650,8 +650,8 @@
                 __self->_C_push_back (*__p);
 
             // over the range of elements moved above
-            for (pointer __p = __end; __movend < __p--; )
-                *__p = *(__p - __size2);
+            for (pointer __q = __end; __movend < __q--; )
+                *__q = *(__q - __size2);
         }
         else {
             // compute the length of the initial subsequence of the range



Mime
View raw message