From 9bb3ab4e3e1ea403888ca34ef27cb316dcdde59d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 19 Jul 2022 09:55:55 -0400 Subject: Use default member initialization --- src/AlsaDriver.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/AlsaDriver.cpp') 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() -- cgit v1.2.1