diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-02-01 17:09:49 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-02-01 17:09:49 +0000 |
commit | abada90e3f84dc703b8ddc9efcbed8a946fadead (patch) | |
tree | 2c6f9dccd510ea97cb927a7bd635422efaae547a /cpp/src/IceGrid/QueryI.cpp | |
parent | removing trace message (diff) | |
download | ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.bz2 ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.xz ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.zip |
Expanded tabs into spaces
Diffstat (limited to 'cpp/src/IceGrid/QueryI.cpp')
-rw-r--r-- | cpp/src/IceGrid/QueryI.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/cpp/src/IceGrid/QueryI.cpp b/cpp/src/IceGrid/QueryI.cpp index 187b6c1339f..3d5cddf03ea 100644 --- a/cpp/src/IceGrid/QueryI.cpp +++ b/cpp/src/IceGrid/QueryI.cpp @@ -30,11 +30,11 @@ QueryI::findObjectById(const Ice::Identity& id, const Ice::Current&) const { try { - return _database->getObjectProxy(id); + return _database->getObjectProxy(id); } catch(const ObjectNotRegisteredException&) { - return 0; + return 0; } } @@ -62,28 +62,28 @@ QueryI::findAllReplicas(const Ice::ObjectPrx& proxy, const Ice::Current&) const { try { - if(!proxy) - { - return Ice::ObjectProxySeq(); - } + if(!proxy) + { + return Ice::ObjectProxySeq(); + } - AdapterInfoSeq infos = _database->getAdapterInfo(proxy->ice_getAdapterId()); - assert(!infos.empty()); - if(infos[0].replicaGroupId != proxy->ice_getAdapterId()) // The adapter id doesn't refer to a replica group. - { - return Ice::ObjectProxySeq(); - } + AdapterInfoSeq infos = _database->getAdapterInfo(proxy->ice_getAdapterId()); + assert(!infos.empty()); + if(infos[0].replicaGroupId != proxy->ice_getAdapterId()) // The adapter id doesn't refer to a replica group. + { + return Ice::ObjectProxySeq(); + } - Ice::ObjectProxySeq proxies; - for(AdapterInfoSeq::const_iterator p = infos.begin(); p != infos.end(); ++p) - { - assert(!p->id.empty()); - proxies.push_back(proxy->ice_adapterId(p->id)); - } - return proxies; + Ice::ObjectProxySeq proxies; + for(AdapterInfoSeq::const_iterator p = infos.begin(); p != infos.end(); ++p) + { + assert(!p->id.empty()); + proxies.push_back(proxy->ice_adapterId(p->id)); + } + return proxies; } catch(const AdapterNotExistException&) { - return Ice::ObjectProxySeq(); + return Ice::ObjectProxySeq(); } } |