Commit 4ff9d013 authored by Tristan Matthews's avatar Tristan Matthews

client: cleanup, fix warnings

Refs: #48032
parent 9b0857c2
......@@ -46,11 +46,6 @@
#include "logger.h"
#include "manager.h"
CallManager::CallManager()
{
evHandlers_ = {};
}
void CallManager::registerEvHandlers(struct sflph_call_ev_handlers* evHandlers)
{
evHandlers_ = *evHandlers;
......
......@@ -55,7 +55,6 @@ class AudioZrtpSession;
class CallManager
{
public:
CallManager();
void registerEvHandlers(struct sflph_call_ev_handlers* evHandlers);
// Methods
......@@ -163,7 +162,7 @@ class CallManager
private:
// Event handlers; needed by the library API
struct sflph_call_ev_handlers evHandlers_;
sflph_call_ev_handlers evHandlers_{};
};
#endif//CALLMANAGER_H
......@@ -51,11 +51,6 @@
#include "history/historynamecache.h"
#include "audio/audiolayer.h"
ConfigurationManager::ConfigurationManager()
{
evHandlers_ = {};
}
void ConfigurationManager::registerEvHandlers(struct sflph_config_ev_handlers* evHandlers)
{
evHandlers_ = *evHandlers;
......
......@@ -47,7 +47,6 @@
class ConfigurationManager
{
public:
ConfigurationManager();
void registerEvHandlers(struct sflph_config_ev_handlers* evHandlers);
// Methods
......@@ -162,7 +161,7 @@ class ConfigurationManager
private:
// Event handlers; needed by the library API
struct sflph_config_ev_handlers evHandlers_;
sflph_config_ev_handlers evHandlers_{};
};
#endif //CONFIGURATIONMANAGER_H
......@@ -49,11 +49,6 @@ constexpr static const char* LINESTATUS_KEY = "LineStatus";
constexpr static const char* ONLINE_KEY = "Online";
constexpr static const char* OFFLINE_KEY = "Offline";
PresenceManager::PresenceManager()
{
evHandlers_ = {};
}
void PresenceManager::registerEvHandlers(struct sflph_pres_ev_handlers* evHandlers)
{
evHandlers_ = *evHandlers;
......
......@@ -43,7 +43,6 @@
class PresenceManager
{
public:
PresenceManager();
void registerEvHandlers(struct sflph_pres_ev_handlers* evHandlers);
// Methods
......@@ -66,7 +65,7 @@ class PresenceManager
private:
// Event handlers; needed by the library API
struct sflph_pres_ev_handlers evHandlers_;
struct sflph_pres_ev_handlers evHandlers_{};
};
#endif //PRESENCEINT_H
......@@ -40,7 +40,6 @@
VideoManager::VideoManager()
{
evHandlers_ = {};
libav_utils::sfl_avcodec_init();
}
......
......@@ -110,9 +110,7 @@ class VideoManager
void stoppedDecoding(const std::string &id, const std::string& shmPath, bool isMixer);
private:
#ifdef SFL_VIDEO
struct sflph_video_ev_handlers evHandlers_;
#endif
sflph_video_ev_handlers evHandlers_{};
};
#endif // VIDEOMANAGER_H_
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