summaryrefslogtreecommitdiffstats
path: root/src/preferences/dialog/dlgprefsounditem.cpp
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-12-15 01:05:33 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-12-15 01:57:06 +0100
commit0471998e13aada9a76e92b13ab3885c2d1c2fb84 (patch)
tree776d15ab92ef044956940bc2228b61256ca4feb9 /src/preferences/dialog/dlgprefsounditem.cpp
parent63b858b5d827797eec959d009ad0b970de167dc5 (diff)
Add missing braces around single-line statements
Diffstat (limited to 'src/preferences/dialog/dlgprefsounditem.cpp')
-rw-r--r--src/preferences/dialog/dlgprefsounditem.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/preferences/dialog/dlgprefsounditem.cpp b/src/preferences/dialog/dlgprefsounditem.cpp
index e493d60855..8efa2d3c04 100644
--- a/src/preferences/dialog/dlgprefsounditem.cpp
+++ b/src/preferences/dialog/dlgprefsounditem.cpp
@@ -80,7 +80,9 @@ void DlgPrefSoundItem::refreshDevices(const QList<SoundDevicePointer>& devices)
deviceComboBox->removeItem(deviceComboBox->count() - 1);
}
for (const auto& pDevice: qAsConst(m_devices)) {
- if (!hasSufficientChannels(*pDevice)) continue;
+ if (!hasSufficientChannels(*pDevice)) {
+ continue;
+ }
deviceComboBox->addItem(pDevice->getDisplayName(), QVariant::fromValue(pDevice->getDeviceId()));
}
int newIndex = deviceComboBox->findData(QVariant::fromValue(oldDev));