You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2007/04/04 23:23:57 UTC
svn commit: r525612 - /incubator/stdcxx/trunk/include/vector.cc
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 <se...@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