Commit 9f3cc70d authored by Tristan Matthews's avatar Tristan Matthews

daemon: remove redundant std::addressof use

parent de708a7f
......@@ -48,7 +48,7 @@
CallManager::CallManager()
{
std::memset(std::addressof(evHandlers_), 0, sizeof(evHandlers_));
evHandlers_ = {};
}
void CallManager::registerEvHandlers(struct sflph_call_ev_handlers* evHandlers)
......
......@@ -53,7 +53,7 @@
ConfigurationManager::ConfigurationManager()
{
std::memset(std::addressof(evHandlers_), 0, sizeof(evHandlers_));
evHandlers_ = {};
}
void ConfigurationManager::registerEvHandlers(struct sflph_config_ev_handlers* evHandlers)
......
......@@ -51,7 +51,7 @@ constexpr static const char* OFFLINE_KEY = "Offline";
PresenceManager::PresenceManager()
{
std::memset(std::addressof(evHandlers_), 0, sizeof(evHandlers_));
evHandlers_ = {};
}
void PresenceManager::registerEvHandlers(struct sflph_pres_ev_handlers* evHandlers)
......
......@@ -40,7 +40,7 @@
VideoManager::VideoManager()
{
std::memset(std::addressof(evHandlers_), 0, sizeof(evHandlers_));
evHandlers_ = {};
libav_utils::sfl_avcodec_init();
}
......
......@@ -105,7 +105,7 @@ int sflph_init(struct sflph_ev_handlers* ev_handlers, enum sflph_init_flag flags
// Create manager
try {
_manager = std::addressof(Manager::instance());
_manager = &(Manager::instance());
} catch (...) {
return -SFLPH_ERR_MANAGER_INIT;
}
......
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