summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/PropertiesI.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/Ice/PropertiesI.cpp b/cpp/src/Ice/PropertiesI.cpp
index 2042b518239..6be3ce9d9a3 100644
--- a/cpp/src/Ice/PropertiesI.cpp
+++ b/cpp/src/Ice/PropertiesI.cpp
@@ -265,6 +265,7 @@ Ice::PropertiesI::PropertiesI(StringSeq& args)
{
setProperty("Ice.ProgramName", *q);
}
+ StringSeq tmp;
while(q != args.end())
{
string s = *q;
@@ -275,13 +276,14 @@ Ice::PropertiesI::PropertiesI(StringSeq& args)
s += "=1";
}
parseLine(s.substr(2));
- args.erase(q);
}
else
{
- ++q;
+ tmp.push_back(s);
}
+ ++q;
}
+ args = tmp;
loadConfig();