From 3f043623c23004a344a3da85577d6c3b86e821fe Mon Sep 17 00:00:00 2001 From: ihsan demir Date: Fri, 12 May 2017 14:05:14 +0300 Subject: [PATCH] Removed the incorrectly used default credentials in the client config. --- hazelcast/include/hazelcast/client/ClientConfig.h | 2 -- hazelcast/src/hazelcast/client/ClientConfig.cpp | 5 ++--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/hazelcast/include/hazelcast/client/ClientConfig.h b/hazelcast/include/hazelcast/client/ClientConfig.h index f966d5a94e..f1d2d103a7 100644 --- a/hazelcast/include/hazelcast/client/ClientConfig.h +++ b/hazelcast/include/hazelcast/client/ClientConfig.h @@ -427,8 +427,6 @@ namespace hazelcast { Credentials *credentials; - std::auto_ptr defaultCredentials; - std::map reliableTopicConfigMap; util::SynchronizedMap nearCacheConfigMap; diff --git a/hazelcast/src/hazelcast/client/ClientConfig.cpp b/hazelcast/src/hazelcast/client/ClientConfig.cpp index 34c9764fb1..0ff5ba4a4b 100644 --- a/hazelcast/src/hazelcast/client/ClientConfig.cpp +++ b/hazelcast/src/hazelcast/client/ClientConfig.cpp @@ -30,8 +30,7 @@ namespace hazelcast { , connectionAttemptLimit(2) , attemptPeriod(3000) , socketInterceptor(NULL) - , credentials(NULL) - , defaultCredentials(NULL){ + , credentials(NULL) { } ClientConfig& ClientConfig::addAddress(const Address& address) { @@ -146,7 +145,7 @@ namespace hazelcast { } const Credentials *ClientConfig::getCredentials() { - return defaultCredentials.get(); + return credentials; } ClientConfig& ClientConfig::setSocketInterceptor(SocketInterceptor *socketInterceptor) {