diff options
author | Benoit Foucher <benoit@zeroc.com> | 2004-06-03 16:37:56 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2004-06-03 16:37:56 +0000 |
commit | edccb896e0f35140f0a7cfafc80de0c3d102f213 (patch) | |
tree | 5b73ddca0110d1dfe61d2012b655ae65428c0cd6 /cpp/src/IcePack/DescriptorUtil.cpp | |
parent | Fix (diff) | |
download | ice-edccb896e0f35140f0a7cfafc80de0c3d102f213.tar.bz2 ice-edccb896e0f35140f0a7cfafc80de0c3d102f213.tar.xz ice-edccb896e0f35140f0a7cfafc80de0c3d102f213.zip |
Fix
Diffstat (limited to 'cpp/src/IcePack/DescriptorUtil.cpp')
-rw-r--r-- | cpp/src/IcePack/DescriptorUtil.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/IcePack/DescriptorUtil.cpp b/cpp/src/IcePack/DescriptorUtil.cpp index a1902eef888..ab8d3fd652c 100644 --- a/cpp/src/IcePack/DescriptorUtil.cpp +++ b/cpp/src/IcePack/DescriptorUtil.cpp @@ -134,7 +134,7 @@ IcePack::equal(const ServerDescriptorPtr& lhs, const ServerDescriptorPtr& rhs) ServiceDescriptorSeq slhs; ServiceDescriptorSeq srhs; - if(lhs->ice_id() == JavaServerDescriptor::ice_staticId()) + if(JavaServerDescriptorPtr::dynamicCast(lhs)) { JavaServerDescriptorPtr jlhs = JavaServerDescriptorPtr::dynamicCast(lhs); JavaServerDescriptorPtr jrhs = JavaServerDescriptorPtr::dynamicCast(rhs); @@ -150,7 +150,7 @@ IcePack::equal(const ServerDescriptorPtr& lhs, const ServerDescriptorPtr& rhs) return false; } - if(lhs->ice_id() == JavaIceBoxDescriptor::ice_staticId()) + if(JavaIceBoxDescriptorPtr::dynamicCast(lhs)) { JavaIceBoxDescriptorPtr ilhs = JavaIceBoxDescriptorPtr::dynamicCast(lhs); JavaIceBoxDescriptorPtr irhs = JavaIceBoxDescriptorPtr::dynamicCast(rhs); @@ -169,7 +169,7 @@ IcePack::equal(const ServerDescriptorPtr& lhs, const ServerDescriptorPtr& rhs) srhs = irhs->services; } } - else if(lhs->ice_id() == CppIceBoxDescriptor::ice_staticId()) + else if(CppIceBoxDescriptorPtr::dynamicCast(lhs)) { CppIceBoxDescriptorPtr ilhs = CppIceBoxDescriptorPtr::dynamicCast(lhs); CppIceBoxDescriptorPtr irhs = CppIceBoxDescriptorPtr::dynamicCast(rhs); |