summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2008-03-26 11:44:05 -0230
committerDwayne Boone <dwayne@zeroc.com>2008-03-26 11:44:05 -0230
commita0915408df272bc22c706f329abae7b9a093e5d8 (patch)
treef45e5e7ed89f407dd31a50f35404c2196b0c55f9 /cpp/src
parentAnother Make.demo.rules fixes (diff)
downloadice-a0915408df272bc22c706f329abae7b9a093e5d8.tar.bz2
ice-a0915408df272bc22c706f329abae7b9a093e5d8.tar.xz
ice-a0915408df272bc22c706f329abae7b9a093e5d8.zip
Fixed VC60 compile error
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Slice/CPlusPlusUtil.cpp5
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)