summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/EndpointFactoryManager.cpp2
-rw-r--r--cpp/src/Ice/InstrumentationI.cpp22
-rw-r--r--cpp/src/Ice/OpaqueEndpointI.cpp8
-rw-r--r--cpp/src/Ice/OpaqueEndpointI.h3
4 files changed, 11 insertions, 24 deletions
diff --git a/cpp/src/Ice/EndpointFactoryManager.cpp b/cpp/src/Ice/EndpointFactoryManager.cpp
index 6cfe7757c82..8ce75b7f108 100644
--- a/cpp/src/Ice/EndpointFactoryManager.cpp
+++ b/cpp/src/Ice/EndpointFactoryManager.cpp
@@ -131,7 +131,7 @@ IceInternal::EndpointFactoryManager::create(const string& str, bool oaEndpoint)
//
if(protocol == "opaque")
{
- EndpointIPtr ue = new OpaqueEndpointI(str.substr(end), _instance);
+ EndpointIPtr ue = new OpaqueEndpointI(str.substr(end));
factory = get(ue->type());
if(factory)
{
diff --git a/cpp/src/Ice/InstrumentationI.cpp b/cpp/src/Ice/InstrumentationI.cpp
index e5a15432fd1..023e4669c09 100644
--- a/cpp/src/Ice/InstrumentationI.cpp
+++ b/cpp/src/Ice/InstrumentationI.cpp
@@ -560,24 +560,14 @@ private:
const ConnectionInfoPtr& _connectionInfo;
const EndpointPtr& _endpoint;
-//
-// Clang 4.2 reports unused-private-field for the _requestId
-// field that is only used in the nested Attributes class.
-//
-#ifdef __clang__
-# pragma clang diagnostic push
-# pragma clang diagnostic ignored "-Wunused-private-field"
-#endif
-
+protected:
+ //
+ // COMPILERFIX: Clang 4.2 reports unused-private-field for the _requestId
+ // field that is only used in the nested Attributes class.
+ //
const int _requestId;
-//
-// Restore diagnostic to previous state.
-//
-#ifdef __clang__
-# pragma clang diagnostic pop
-#endif
-
+private:
const int _size;
mutable string _id;
mutable EndpointInfoPtr _endpointInfo;
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;
diff --git a/cpp/src/Ice/OpaqueEndpointI.h b/cpp/src/Ice/OpaqueEndpointI.h
index 53041b42058..303537ac7a2 100644
--- a/cpp/src/Ice/OpaqueEndpointI.h
+++ b/cpp/src/Ice/OpaqueEndpointI.h
@@ -12,7 +12,6 @@
#include <Ice/EndpointI.h>
#include <Ice/EndpointFactory.h>
-#include <Ice/InstanceF.h>
namespace IceInternal
{
@@ -21,7 +20,7 @@ class OpaqueEndpointI : public EndpointI
{
public:
- OpaqueEndpointI(const ::std::string&, const InstancePtr&);
+ OpaqueEndpointI(const ::std::string&);
OpaqueEndpointI(Ice::Short, BasicStream*);
virtual void streamWrite(BasicStream*) const;