You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by bo...@apache.org on 2010/01/28 09:28:06 UTC
svn commit: r903997 -
/xerces/c/trunk/src/xercesc/validators/schema/identity/XercesXPath.cpp
Author: borisk
Date: Thu Jan 28 08:28:06 2010
New Revision: 903997
URL: http://svn.apache.org/viewvc?rev=903997&view=rev
Log:
Don't reuse the same variable in for loops (we still support stone age compilers).
Modified:
xerces/c/trunk/src/xercesc/validators/schema/identity/XercesXPath.cpp
Modified: xerces/c/trunk/src/xercesc/validators/schema/identity/XercesXPath.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/validators/schema/identity/XercesXPath.cpp?rev=903997&r1=903996&r2=903997&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/validators/schema/identity/XercesXPath.cpp (original)
+++ xerces/c/trunk/src/xercesc/validators/schema/identity/XercesXPath.cpp Thu Jan 28 08:28:06 2010
@@ -5,9 +5,9 @@
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -675,8 +675,8 @@
XercesLocationPath* newPath = new (fMemoryManager) XercesLocationPath(stepsVector);
janSteps.orphan();
bool bFound=false;
- for(XMLSize_t i=0;i<fLocationPaths->size();i++)
- if((*(fLocationPaths->elementAt(i)))==(*newPath))
+ for(XMLSize_t j=0;j<fLocationPaths->size();j++)
+ if((*(fLocationPaths->elementAt(j)))==(*newPath))
{
bFound=true;
break;
@@ -1458,4 +1458,3 @@
/**
* End of file XercesPath.cpp
*/
-
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org