diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-03-26 11:44:05 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-03-26 11:44:05 -0230 |
commit | a0915408df272bc22c706f329abae7b9a093e5d8 (patch) | |
tree | f45e5e7ed89f407dd31a50f35404c2196b0c55f9 /cpp | |
parent | Another Make.demo.rules fixes (diff) | |
download | ice-a0915408df272bc22c706f329abae7b9a093e5d8.tar.bz2 ice-a0915408df272bc22c706f329abae7b9a093e5d8.tar.xz ice-a0915408df272bc22c706f329abae7b9a093e5d8.zip |
Fixed VC60 compile error
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/Slice/CPlusPlusUtil.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<string>& includePaths) // without symlinks resolved. // vector<string> newIncludePaths; - for(vector<string>::const_iterator p = includePaths.begin(); p != includePaths.end(); ++p) + vector<string>::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<string>& includePaths) // the path that produces the shortest relative filename. // string result = file; - for(vector<string>::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) |