diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/AlsaDriver.cpp | 6 | ||||
-rw-r--r-- | src/Patchage.cpp | 2 | ||||
-rw-r--r-- | src/Patchage.hpp | 4 |
3 files changed, 4 insertions, 8 deletions
diff --git a/src/AlsaDriver.cpp b/src/AlsaDriver.cpp index a1b2caa..e20573a 100644 --- a/src/AlsaDriver.cpp +++ b/src/AlsaDriver.cpp @@ -68,8 +68,8 @@ private: void _refresh_main(); ILog& _log; - snd_seq_t* _seq; - pthread_t _refresh_thread; + snd_seq_t* _seq{nullptr}; + pthread_t _refresh_thread{}; struct SeqAddrComparator { bool operator()(const snd_seq_addr_t& a, const snd_seq_addr_t& b) const @@ -133,8 +133,6 @@ port_info(const snd_seq_port_info_t* const pinfo) AlsaDriver::AlsaDriver(ILog& log, EventSink emit_event) : Driver{std::move(emit_event)} , _log(log) - , _seq(nullptr) - , _refresh_thread{} {} AlsaDriver::~AlsaDriver() diff --git a/src/Patchage.cpp b/src/Patchage.cpp index 6d6c13e..daad2c2 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -207,12 +207,10 @@ Patchage::Patchage(Options options) , _conf([this](const Setting& setting) { on_conf_change(setting); }) , _log(_status_text) , _canvas(new Canvas{_log, _action_sink, 1600 * 2, 1200 * 2}) - , _legend(nullptr) , _drivers(_log, [this](const Event& event) { on_driver_event(event); }) , _reactor(_conf, _drivers, *_canvas, _log) , _action_sink([this](const Action& action) { _reactor(action); }) , _options{options} - , _attach(true) { Glib::set_application_name("Patchage"); _about_win->property_program_name() = "Patchage"; diff --git a/src/Patchage.hpp b/src/Patchage.hpp index 6f70620..c4a4687 100644 --- a/src/Patchage.hpp +++ b/src/Patchage.hpp @@ -180,7 +180,7 @@ protected: std::mutex _events_mutex; std::queue<Event> _driver_events; BufferSizeColumns _buf_size_columns; - Legend* _legend; + Legend* _legend{nullptr}; Metadata _metadata; Drivers _drivers; Reactor _reactor; @@ -190,7 +190,7 @@ protected: Glib::RefPtr<Gtk::TextTag> _warning_tag; Options _options; - bool _attach; + bool _attach{true}; }; } // namespace patchage |