summaryrefslogtreecommitdiffstats
path: root/src/AlsaDriver.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-07-19 09:55:55 -0400
committerDavid Robillard <d@drobilla.net>2022-07-20 10:35:32 -0400
commit9bb3ab4e3e1ea403888ca34ef27cb316dcdde59d (patch)
tree227e8b2d5400f1adf98616b4d456850132d9c867 /src/AlsaDriver.cpp
parenta38e46d2415bc19d8dd2f3157bfd4ead66e9c7f7 (diff)
downloadpatchage-9bb3ab4e3e1ea403888ca34ef27cb316dcdde59d.tar.gz
patchage-9bb3ab4e3e1ea403888ca34ef27cb316dcdde59d.tar.bz2
patchage-9bb3ab4e3e1ea403888ca34ef27cb316dcdde59d.zip
Use default member initialization
Diffstat (limited to 'src/AlsaDriver.cpp')
-rw-r--r--src/AlsaDriver.cpp6
1 files changed, 2 insertions, 4 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()