From 833cf68a5bf58e882f377d144768ceb546e5e036 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 9 Sep 2008 14:06:07 +0000 Subject: Generate c++ enum types for AMQP enums in framing/enum.h. Modified enum scheme to avoid name clashes: namespace amqp_class { EnumName { ENUM_NAME_X=1, ENUM_NAME_X=2 ...}}; git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@693465 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/SessionImpl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/src/qpid/client/SessionImpl.cpp') diff --git a/cpp/src/qpid/client/SessionImpl.cpp b/cpp/src/qpid/client/SessionImpl.cpp index 2075ed04f3..aef546c427 100644 --- a/cpp/src/qpid/client/SessionImpl.cpp +++ b/cpp/src/qpid/client/SessionImpl.cpp @@ -26,7 +26,7 @@ #include "qpid/framing/all_method_bodies.h" #include "qpid/framing/ClientInvoker.h" -#include "qpid/framing/constants.h" +#include "qpid/framing/enum.h" #include "qpid/framing/FrameSet.h" #include "qpid/framing/MethodContent.h" #include "qpid/framing/SequenceSet.h" @@ -41,7 +41,7 @@ namespace qpid { namespace client { using namespace qpid::framing; -using namespace qpid::framing::session;//for detach codes +using namespace qpid::framing::session; //for detach codes typedef sys::Monitor::ScopedLock Lock; typedef sys::Monitor::ScopedUnlock UnLock; @@ -52,7 +52,7 @@ SessionImpl::SessionImpl(const std::string& name, shared_ptr conn, uint16_t ch, uint64_t _maxFrameSize) : error(OK), - code(NORMAL), + code(DETACH_CODE_NORMAL), text(EMPTY), state(INACTIVE), detachedLifetime(0), -- cgit v1.2.1