summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Reference.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-11-07 13:30:07 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-11-07 13:30:07 +0000
commitdb55fb00e84f8d62f51ad0e84a7ec74df01e2d69 (patch)
tree8a71bde0b16a5bd3924e1573655e554180e9f0a8 /cpp/src/Ice/Reference.cpp
parentFixed a few coding style issues. (diff)
downloadice-db55fb00e84f8d62f51ad0e84a7ec74df01e2d69.tar.bz2
ice-db55fb00e84f8d62f51ad0e84a7ec74df01e2d69.tar.xz
ice-db55fb00e84f8d62f51ad0e84a7ec74df01e2d69.zip
Added FixedProxyException
Diffstat (limited to 'cpp/src/Ice/Reference.cpp')
-rw-r--r--cpp/src/Ice/Reference.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/cpp/src/Ice/Reference.cpp b/cpp/src/Ice/Reference.cpp
index 11b33cf6c56..9a7aab95a3d 100644
--- a/cpp/src/Ice/Reference.cpp
+++ b/cpp/src/Ice/Reference.cpp
@@ -489,25 +489,25 @@ IceInternal::FixedReference::getEndpointSelection() const
ReferencePtr
IceInternal::FixedReference::changeSecure(bool) const
{
- return FixedReferencePtr(const_cast<FixedReference*>(this));
+ throw FixedProxyException(__FILE__, __LINE__);
}
ReferencePtr
IceInternal::FixedReference::changeRouter(const RouterPrx&) const
{
- return FixedReferencePtr(const_cast<FixedReference*>(this));
+ throw FixedProxyException(__FILE__, __LINE__);
}
ReferencePtr
IceInternal::FixedReference::changeLocator(const LocatorPrx&) const
{
- return FixedReferencePtr(const_cast<FixedReference*>(this));
+ throw FixedProxyException(__FILE__, __LINE__);
}
ReferencePtr
IceInternal::FixedReference::changeCollocationOptimization(bool) const
{
- return FixedReferencePtr(const_cast<FixedReference*>(this));
+ throw FixedProxyException(__FILE__, __LINE__);
}
ReferencePtr
@@ -516,61 +516,61 @@ IceInternal::FixedReference::changeCompress(bool) const
// TODO: FixedReferences should probably have a _compress flag,
// that gets its default from the fixed connection this reference
// refers to. This should be changable with changeCompress().
- return FixedReferencePtr(const_cast<FixedReference*>(this));
+ throw FixedProxyException(__FILE__, __LINE__);
}
ReferencePtr
IceInternal::FixedReference::changeTimeout(int) const
{
- return FixedReferencePtr(const_cast<FixedReference*>(this));
+ throw FixedProxyException(__FILE__, __LINE__);
}
ReferencePtr
IceInternal::FixedReference::changeConnectionId(const string&) const
{
- return FixedReferencePtr(const_cast<FixedReference*>(this));
+ throw FixedProxyException(__FILE__, __LINE__);
}
ReferencePtr
IceInternal::FixedReference::changeLocatorCacheTimeout(int) const
{
- return FixedReferencePtr(const_cast<FixedReference*>(this));
+ throw FixedProxyException(__FILE__, __LINE__);
}
ReferencePtr
IceInternal::FixedReference::changeAdapterId(const string& newAdapterId) const
{
- return FixedReferencePtr(const_cast<FixedReference*>(this));
+ throw FixedProxyException(__FILE__, __LINE__);
}
ReferencePtr
IceInternal::FixedReference::changeEndpoints(const vector<EndpointIPtr>& newEndpoints) const
{
- return FixedReferencePtr(const_cast<FixedReference*>(this));
+ throw FixedProxyException(__FILE__, __LINE__);
}
ReferencePtr
IceInternal::FixedReference::changeCacheConnection(bool) const
{
- return FixedReferencePtr(const_cast<FixedReference*>(this));
+ throw FixedProxyException(__FILE__, __LINE__);
}
ReferencePtr
IceInternal::FixedReference::changeEndpointSelection(EndpointSelectionType) const
{
- return FixedReferencePtr(const_cast<FixedReference*>(this));
+ throw FixedProxyException(__FILE__, __LINE__);
}
void
IceInternal::FixedReference::streamWrite(BasicStream* s) const
{
- throw MarshalException(__FILE__, __LINE__, "Cannot marshal a fixed proxy");
+ throw FixedProxyException(__FILE__, __LINE__);
}
string
IceInternal::FixedReference::toString() const
{
- throw MarshalException(__FILE__, __LINE__, "Cannot marshal a fixed proxy");
+ throw FixedProxyException(__FILE__, __LINE__);
assert(false); // Cannot be reached.
return string(); // To keep the compiler from complaining.