diff options
author | Benoit Foucher <benoit@zeroc.com> | 2013-02-01 18:15:57 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2013-02-01 18:15:57 +0100 |
commit | ba166110beb86f147aac6d221c9c41a1fb45d797 (patch) | |
tree | 657d223239f76d16cf265ac95ce0b6b8813471da /cpp/src/Ice/OpaqueEndpointI.cpp | |
parent | Ice:/8929351 - remove tp_libidr/tp_bindir (diff) | |
download | ice-ba166110beb86f147aac6d221c9c41a1fb45d797.tar.bz2 ice-ba166110beb86f147aac6d221c9c41a1fb45d797.tar.xz ice-ba166110beb86f147aac6d221c9c41a1fb45d797.zip |
Fix for ICE-5140 - an opaque endpoint which doesn't specify -e is assumed to be a 1.0 encoded endpoint
Diffstat (limited to 'cpp/src/Ice/OpaqueEndpointI.cpp')
-rw-r--r-- | cpp/src/Ice/OpaqueEndpointI.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cpp/src/Ice/OpaqueEndpointI.cpp b/cpp/src/Ice/OpaqueEndpointI.cpp index cfad09c13e8..f33c5da2adb 100644 --- a/cpp/src/Ice/OpaqueEndpointI.cpp +++ b/cpp/src/Ice/OpaqueEndpointI.cpp @@ -10,20 +10,18 @@ #include <Ice/OpaqueEndpointI.h> #include <Ice/BasicStream.h> #include <Ice/Exception.h> -#include <Ice/Instance.h> #include <Ice/DefaultsAndOverrides.h> #include <Ice/Base64.h> #include <Ice/HashUtil.h> +#include <Ice/LocalException.h> using namespace std; using namespace Ice; using namespace IceInternal; -IceInternal::OpaqueEndpointI::OpaqueEndpointI(const string& str, const InstancePtr& instance) : - EndpointI("") +IceInternal::OpaqueEndpointI::OpaqueEndpointI(const string& str) : + EndpointI(""), _rawEncoding(Encoding_1_0) { - _rawEncoding = instance->defaultsAndOverrides()->defaultEncoding; - const string delim = " \t\n\r"; string::size_type beg; |