Fix gcc -Wshadow warnings

[SVN r20857]
This commit is contained in:
John Maddock
2003-11-19 12:57:50 +00:00
parent 42337410fc
commit 27875c1e55
7 changed files with 161 additions and 162 deletions

View File

@ -717,11 +717,11 @@ void BOOST_REGEX_CALL c_regex_traits<char>::transform_primary(std::string& out,
out.erase((int)sort_delim);
break;
case re_detail::sort_delim:
for(unsigned int i = 0; i < out.size(); ++i)
for(unsigned int j = 0; j < out.size(); ++j)
{
if((out[i] == sort_delim) && (i+1 < out.size()))
if((out[j] == sort_delim) && (j+1 < out.size()))
{
out.erase(i+1);
out.erase(j+1);
break;
}
}