From a0915408df272bc22c706f329abae7b9a093e5d8 Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Wed, 26 Mar 2008 11:44:05 -0230 Subject: Fixed VC60 compile error --- cpp/src/Slice/CPlusPlusUtil.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpp/src/Slice/CPlusPlusUtil.cpp') diff --git a/cpp/src/Slice/CPlusPlusUtil.cpp b/cpp/src/Slice/CPlusPlusUtil.cpp index 782bbe72a68..fe2cf463b3a 100644 --- a/cpp/src/Slice/CPlusPlusUtil.cpp +++ b/cpp/src/Slice/CPlusPlusUtil.cpp @@ -52,7 +52,8 @@ Slice::changeInclude(const string& orig, const vector& includePaths) // without symlinks resolved. // vector newIncludePaths; - for(vector::const_iterator p = includePaths.begin(); p != includePaths.end(); ++p) + vector::const_iterator p; + for(p = includePaths.begin(); p != includePaths.end(); ++p) { string includePath = *p; if(!isAbsolute(includePath)) @@ -85,7 +86,7 @@ Slice::changeInclude(const string& orig, const vector& includePaths) // the path that produces the shortest relative filename. // string result = file; - for(vector::const_iterator p = newIncludePaths.begin(); p != newIncludePaths.end(); ++p) + for(p = newIncludePaths.begin(); p != newIncludePaths.end(); ++p) { string includePath = *p; if(file.compare(0, includePath.length(), includePath) == 0) -- cgit v1.2.3