Commit bca6be99 authored by Guillaume Roguez's avatar Guillaume Roguez

siptransport: fix minor code rules violation

Refs #68196

Change-Id: I5f746e1f08861503b042648cdbfaabd00c3ddb49
parent e22087db
......@@ -132,7 +132,7 @@ void
SipTransport::stateCallback(pjsip_transport_state state,
const pjsip_transport_state_info *info)
{
connected = state == PJSIP_TP_STATE_CONNECTED;
connected_ = state == PJSIP_TP_STATE_CONNECTED;
#if HAVE_TLS
auto extInfo = static_cast<const pjsip_tls_state_info*>(info->ext_info);
......
......@@ -147,7 +147,7 @@ class SipTransport
static bool isAlive(const std::shared_ptr<SipTransport>&, pjsip_transport_state state);
/** Only makes sense for connection-oriented transports */
bool isConnected() const { return connected; } ;
bool isConnected() const noexcept { return connected_; }
private:
NON_COPYABLE(SipTransport);
......@@ -159,7 +159,7 @@ class SipTransport
std::map<uintptr_t, SipTransportStateCallback> stateListeners_;
std::mutex stateListenersMutex_;
bool connected {false};
bool connected_ {false};
TlsInfos tlsInfos_;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment