From 6342c9cfa934b356b6903be030ce2667c4e5b829 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 27 Nov 2020 17:57:39 +0100 Subject: Always use braces around statements --- src/Patchage.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src/Patchage.cpp') 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 } } -- cgit v1.2.1