summaryrefslogtreecommitdiff
path: root/cpp/src/Ice
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2017-02-09 16:31:31 -0800
committerMark Spruiell <mes@zeroc.com>2017-02-09 16:31:31 -0800
commitaf409fe78bdca7db6315ab0cc99ad063f8daecf7 (patch)
treeb0079f556247a14f43e77ca6a31cb42df019485b /cpp/src/Ice
parentFixed enum-related warnings (diff)
downloadice-af409fe78bdca7db6315ab0cc99ad063f8daecf7.tar.bz2
ice-af409fe78bdca7db6315ab0cc99ad063f8daecf7.tar.xz
ice-af409fe78bdca7db6315ab0cc99ad063f8daecf7.zip
ICE-7560 - more AMI test fixes, renaming ConnectionClose enumerators
Diffstat (limited to 'cpp/src/Ice')
-rw-r--r--cpp/src/Ice/ConnectionI.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/Ice/ConnectionI.cpp b/cpp/src/Ice/ConnectionI.cpp
index 223326203d1..1341cc44e5b 100644
--- a/cpp/src/Ice/ConnectionI.cpp
+++ b/cpp/src/Ice/ConnectionI.cpp
@@ -498,17 +498,17 @@ Ice::ConnectionI::close(ConnectionClose mode)
{
IceUtil::Monitor<IceUtil::Mutex>::Lock sync(*this);
- if(mode == ICE_ENUM(ConnectionClose, CloseForcefully))
+ if(mode == ICE_SCOPED_ENUM(ConnectionClose, Forcefully))
{
setState(StateClosed, ConnectionManuallyClosedException(__FILE__, __LINE__, false));
}
- else if(mode == ICE_ENUM(ConnectionClose, CloseGracefully))
+ else if(mode == ICE_SCOPED_ENUM(ConnectionClose, Gracefully))
{
setState(StateClosing, ConnectionManuallyClosedException(__FILE__, __LINE__, true));
}
else
{
- assert(mode == ICE_ENUM(ConnectionClose, CloseGracefullyAndWait));
+ assert(mode == ICE_SCOPED_ENUM(ConnectionClose, GracefullyWithWait));
//
// Wait until all outstanding requests have been completed.