diff options
author | David Robillard <d@drobilla.net> | 2020-11-27 17:57:39 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-27 21:42:51 +0100 |
commit | 6342c9cfa934b356b6903be030ce2667c4e5b829 (patch) | |
tree | 2cfdc1430bf5dea216e362913b2ef435a67102cc /src/Patchage.cpp | |
parent | 34a5ca666a2dceb9eacc1087acb7bebf2f7e2758 (diff) | |
download | patchage-6342c9cfa934b356b6903be030ce2667c4e5b829.tar.gz patchage-6342c9cfa934b356b6903be030ce2667c4e5b829.tar.bz2 patchage-6342c9cfa934b356b6903be030ce2667c4e5b829.zip |
Always use braces around statements
Diffstat (limited to 'src/Patchage.cpp')
-rw-r--r-- | src/Patchage.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp index 516f490..8f9f78d 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -410,13 +410,15 @@ Patchage::attach() _enable_refresh = false; #if defined(PATCHAGE_LIBJACK) || defined(HAVE_JACK_DBUS) - if (_jack_driver_autoattach) + if (_jack_driver_autoattach) { _jack_driver->attach(true); + } #endif #ifdef HAVE_ALSA - if (_alsa_driver_autoattach) + if (_alsa_driver_autoattach) { _alsa_driver->attach(); + } #endif _enable_refresh = true; @@ -454,12 +456,14 @@ Patchage::idle_callback() refresh(); } else if (_driver_detached) { #if defined(PATCHAGE_LIBJACK) || defined(HAVE_JACK_DBUS) - if (_jack_driver && !_jack_driver->is_attached()) + if (_jack_driver && !_jack_driver->is_attached()) { _jack_driver->destroy_all(); + } #endif #ifdef HAVE_ALSA - if (_alsa_driver && !_alsa_driver->is_attached()) + if (_alsa_driver && !_alsa_driver->is_attached()) { _alsa_driver->destroy_all(); + } #endif } @@ -538,13 +542,15 @@ Patchage::refresh() _canvas->clear(); #if defined(PATCHAGE_LIBJACK) || defined(HAVE_JACK_DBUS) - if (_jack_driver) + if (_jack_driver) { _jack_driver->refresh(); + } #endif #ifdef HAVE_ALSA - if (_alsa_driver) + if (_alsa_driver) { _alsa_driver->refresh(); + } #endif } } |