diff options
author | Marc Laukien <marc@zeroc.com> | 2004-10-29 14:42:15 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-10-29 14:42:15 +0000 |
commit | 939fab5de66d7c9181b1be525420165efd71930a (patch) | |
tree | 30e905a60834ebf8a24eb94a3e9d732d864962ed /cpp/src/Ice/Reference.cpp | |
parent | fixes (diff) | |
download | ice-939fab5de66d7c9181b1be525420165efd71930a.tar.bz2 ice-939fab5de66d7c9181b1be525420165efd71930a.tar.xz ice-939fab5de66d7c9181b1be525420165efd71930a.zip |
Outgoing::abort()
Diffstat (limited to 'cpp/src/Ice/Reference.cpp')
-rw-r--r-- | cpp/src/Ice/Reference.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cpp/src/Ice/Reference.cpp b/cpp/src/Ice/Reference.cpp index 27045b5a9c0..db2d0600c2b 100644 --- a/cpp/src/Ice/Reference.cpp +++ b/cpp/src/Ice/Reference.cpp @@ -95,6 +95,7 @@ IceInternal::Reference::changeSecure(bool newSecure) const ReferencePtr IceInternal::Reference::changeCollocationOptimization(bool newCollocationOptimization) const { + // TODO: See comments in header. if(newCollocationOptimization == collocationOptimization) { return ReferencePtr(const_cast<Reference*>(this)); @@ -107,30 +108,40 @@ IceInternal::Reference::changeCollocationOptimization(bool newCollocationOptimiz ReferencePtr IceInternal::Reference::changeRouter(const RouterPrx&) const { + // TODO: I suggest to make this pure virtual, and to move this + // implementation to FixedReference. return ReferencePtr(const_cast<Reference*>(this)); } ReferencePtr IceInternal::Reference::changeLocator(const LocatorPrx&) const { + // TODO: I suggest to make this pure virtual, and to move this + // implementation to FixedReference. return ReferencePtr(const_cast<Reference*>(this)); } ReferencePtr IceInternal::Reference::changeDefault() const { + // TODO: This operation should either be pure virtual, or it + // should change the default values and be used by the overrides. return ReferencePtr(const_cast<Reference*>(this)); } ReferencePtr IceInternal::Reference::changeCompress(bool) const { + // TODO: I suggest to make this pure virtual, and to move this + // implementation to FixedReference. return ReferencePtr(const_cast<Reference*>(this)); } ReferencePtr IceInternal::Reference::changeTimeout(int) const { + // TODO: I suggest to make it pure virtual, and to move this + // implementation to FixedReference. return ReferencePtr(const_cast<Reference*>(this)); } @@ -503,6 +514,7 @@ IceInternal::Reference::Reference(const InstancePtr& inst, const Ice::Identity& IceInternal::Reference::Reference(const Reference& r) { + // TODO: Use initializer list. instance = r.instance; mode = r.mode; identity = r.identity; @@ -528,6 +540,8 @@ IceInternal::FixedReference::FixedReference(const InstancePtr& inst, const Ice:: vector<EndpointPtr> IceInternal::FixedReference::getEndpoints() const { + // TODO: Remove implementation, it doesn't do anything. The + // overrides are all that is needed. return vector<EndpointPtr>(); } @@ -655,12 +669,14 @@ IceInternal::RoutableReference::changeDefault() const ReferencePtr IceInternal::RoutableReference::changeCompress(bool newCompress) const { + // TODO: Remove this implementation, it doesn't add anything. return RoutableReferencePtr(const_cast<RoutableReference*>(this)); } ReferencePtr IceInternal::RoutableReference::changeTimeout(int newTimeout) const { + // TODO: Remove this implementation, it doesn't add anything. return RoutableReferencePtr(const_cast<RoutableReference*>(this)); } |