From 9582f627309dbabf68ae5476cf197e6ab813a12f Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Tue, 25 Apr 2006 14:56:52 +0000 Subject: Fix --- cpp/src/IceGrid/ObjectCache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/IceGrid/ObjectCache.cpp') 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; } -- cgit v1.2.3