Skip to content

Commit 1c4a08e

Browse files
committed
Fixes after code review.
1 parent cb2b685 commit 1c4a08e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

framework/areg/base/private/Socket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ int Socket::receiveData( unsigned char * buffer, int length ) const
116116

117117
bool Socket::setAddress(const char * hostName, unsigned short portNr, bool isServer)
118118
{
119-
if ( isValid() && mAddress.isEqualAddress(hostName, portNr) )
119+
if ( isValid() && (mAddress.isEqualAddress(hostName, portNr) == false))
120120
{
121121
ASSERT(mSocket.get() != nullptr);
122122
decreaseLock( );

framework/areglogger/client/LogObserverBase.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class LOGGER_API LogObserverBase
174174
/**
175175
* \brief Return the IP address of log collector service set in the configuration.
176176
**/
177-
const std::string getConfigLoggerAddress(void) const;
177+
std::string getConfigLoggerAddress(void) const;
178178

179179
/**
180180
* \brief Sets the IP address of the log collector service in the configuration.

framework/areglogger/client/private/LogObserverBase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ bool LogObserverBase::getConfigLoggerEnabled(void) const
119119
return logObserverConfigLoggerEnabled();
120120
}
121121

122-
const std::string LogObserverBase::getConfigLoggerAddress(void) const
122+
std::string LogObserverBase::getConfigLoggerAddress(void) const
123123
{
124124
return LoggerClient::getInstance().getConfigLoggerAddress().getData();
125125
}

0 commit comments

Comments
 (0)