summaryrefslogtreecommitdiff
path: root/cpp/demo/Freeze/bench/Client.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2004-05-20 23:06:21 +0000
committerBernard Normier <bernard@zeroc.com>2004-05-20 23:06:21 +0000
commit43cd23b05cce3f1216b5e95d357418180162e19e (patch)
tree4d92e80c1f540800309fd15504cd1329d7610dfd /cpp/demo/Freeze/bench/Client.cpp
parentremove now returns the servant (diff)
downloadice-43cd23b05cce3f1216b5e95d357418180162e19e.tar.bz2
ice-43cd23b05cce3f1216b5e95d357418180162e19e.tar.xz
ice-43cd23b05cce3f1216b5e95d357418180162e19e.zip
Removed a few temporary iterators
Diffstat (limited to 'cpp/demo/Freeze/bench/Client.cpp')
-rw-r--r--cpp/demo/Freeze/bench/Client.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/demo/Freeze/bench/Client.cpp b/cpp/demo/Freeze/bench/Client.cpp
index 156a0b52bd5..13d1dfbd460 100644
--- a/cpp/demo/Freeze/bench/Client.cpp
+++ b/cpp/demo/Freeze/bench/Client.cpp
@@ -198,7 +198,7 @@ TestApp::IntIntMapTest()
_watch.start();
for(i = 0; i < _repetitions; ++i)
{
- IntIntMap::const_iterator p = m.find(i);
+ IntIntMap::iterator p = m.find(i);
test(p != m.end());
test(p->second == i);
}
@@ -234,7 +234,7 @@ TestApp::generatedRead(IntIntMap& m, int reads , const GeneratorPtr& gen)
for(int i = 0; i < reads; ++i)
{
int key = gen->next();
- IntIntMap::const_iterator p = m.find(key);
+ IntIntMap::iterator p = m.find(key);
test(p != m.end());
test(p->second == key);
}
@@ -341,7 +341,7 @@ TestApp::Struct1Struct2MapTest()
for(i = 0; i < _repetitions; ++i)
{
s1.l = i;
- Struct1Struct2Map::const_iterator p = m.find(s1);
+ Struct1Struct2Map::iterator p = m.find(s1);
test(p != m.end());
ostringstream os;
os << i;
@@ -409,7 +409,7 @@ TestApp::Struct1Class1MapTest()
for(i = 0; i < _repetitions; ++i)
{
s1.l = i;
- Struct1Class1Map::const_iterator p = m.find(s1);
+ Struct1Class1Map::iterator p = m.find(s1);
test(p != m.end());
ostringstream os;
os << i;
@@ -490,7 +490,7 @@ TestApp::Struct1ObjectMapTest()
for(i = 0; i < _repetitions; ++i)
{
s1.l = i;
- Struct1ObjectMap::const_iterator p = m.find(s1);
+ Struct1ObjectMap::iterator p = m.find(s1);
test(p != m.end());
Ice::ObjectPtr o = p->second;
Class1Ptr nc1;