summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Incoming.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/Incoming.cpp')
-rw-r--r--cpp/src/Ice/Incoming.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/cpp/src/Ice/Incoming.cpp b/cpp/src/Ice/Incoming.cpp
index 8a64b7eabe7..dc22aa009a5 100644
--- a/cpp/src/Ice/Incoming.cpp
+++ b/cpp/src/Ice/Incoming.cpp
@@ -67,6 +67,7 @@ IceInternal::IncomingBase::IncomingBase(Instance* instance, ResponseHandler* res
}
IceInternal::IncomingBase::IncomingBase(IncomingBase& other) :
+ IceUtil::noncopyable(), // TODO, remove noncopyable base class
_current(other._current),
_servant(other._servant),
_locator(other._locator),
@@ -389,7 +390,7 @@ IceInternal::IncomingBase::handleException(const std::exception& exc, bool amd)
_responseHandler->sendNoResponse();
}
}
- else if(const UserException* ex = dynamic_cast<const UserException*>(&exc))
+ else if(const UserException* uex = dynamic_cast<const UserException*>(&exc))
{
_observer.userException();
@@ -402,7 +403,7 @@ IceInternal::IncomingBase::handleException(const std::exception& exc, bool amd)
_os.write(_current.requestId);
_os.write(replyUserException);
_os.startEncapsulation(_current.encoding, _format);
- _os.write(*ex);
+ _os.write(*uex);
_os.endEncapsulation();
_observer.reply(static_cast<Int>(_os.b.size() - headerSize - 4));
_responseHandler->sendResponse(_current.requestId, &_os, _compress, amd);
@@ -454,11 +455,11 @@ IceInternal::IncomingBase::handleException(const std::exception& exc, bool amd)
}
_os.write(str.str(), false);
}
- else if(const UserException* ue = dynamic_cast<const UserException*>(&exc))
+ else if(const UserException* use = dynamic_cast<const UserException*>(&exc))
{
_os.write(replyUnknownUserException);
ostringstream str;
- str << *ue;
+ str << *use;
if(IceUtilInternal::printStackTraces)
{
str << '\n' << ex->ice_stackTrace();
@@ -659,11 +660,11 @@ IceInternal::Incoming::invoke(const ServantManagerPtr& servantManager, InputStre
if(obsv)
{
// Read the parameter encapsulation size.
- Ice::Int sz;
- _is->read(sz);
+ Ice::Int encapsSize;
+ _is->read(encapsSize);
_is->i -= 4;
- _observer.attach(obsv->getDispatchObserver(_current, static_cast<Int>(_is->i - start + sz)));
+ _observer.attach(obsv->getDispatchObserver(_current, static_cast<Int>(_is->i - start + encapsSize)));
}
//