Use smart pointer for CSysLogDaemon

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/783/head
probonopd 3 months ago committed by GitHub
parent 0764ee293d
commit c80048dda6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      src/minidexed.cpp

@ -2258,7 +2258,7 @@ void CMiniDexed::UpdateNetwork()
LOGNOTE ("Sending log messages to syslog server %s:%u",
(const char *) IPString, (unsigned) usServerPort);
new CSysLogDaemon (m_pNet, ServerIP, usServerPort);
m_pSysLogDaemon = std::make_unique<CSysLogDaemon>(m_pNet, ServerIP, usServerPort);
}
}
m_bNetworkReady = true;

Loading…
Cancel
Save