summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/ObjectCache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceGrid/ObjectCache.cpp')
-rw-r--r--cpp/src/IceGrid/ObjectCache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/ObjectCache.cpp b/cpp/src/IceGrid/ObjectCache.cpp
index df39caaef91..cdbb0fceb34 100644
--- a/cpp/src/IceGrid/ObjectCache.cpp
+++ b/cpp/src/IceGrid/ObjectCache.cpp
@@ -163,14 +163,14 @@ ObjectCache::allocateByType(const string& type, const ObjectAllocationRequestPtr
Ice::ObjectProxySeq objects = p->second.getObjects();
random_shuffle(objects.begin(), objects.end(), _rand); // TODO: OPTIMIZE
- for(Ice::ObjectProxySeq::const_iterator p = objects.begin(); p != objects.end(); ++p)
+ for(Ice::ObjectProxySeq::const_iterator q = objects.begin(); q != objects.end(); ++q)
{
//
// If tryAllocate() returns true, either the object was
// successfully allocated or the request canceled. In both
// cases, we're done!
//
- if(getImpl((*p)->ice_getIdentity())->tryAllocate(request))
+ if(getImpl((*q)->ice_getIdentity())->tryAllocate(request))
{
return;
}