Skip to content

Commit

Permalink
Merge pull request #12028 from Holzhaus/clazy-main
Browse files Browse the repository at this point in the history
Fix clazy issues on `main`
  • Loading branch information
JoergAtGithub authored Sep 27, 2023
2 parents 7534092 + 4ee05eb commit d5dba0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/preferences/dialog/dlgprefsound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ DlgPrefSound::DlgPrefSound(QWidget* pParent,
&DlgPrefSound::apiChanged);

sampleRateComboBox->clear();
for (const auto& sampleRate : m_pSoundManager->getSampleRates()) {
const auto sampleRates = m_pSoundManager->getSampleRates();
for (const auto& sampleRate : sampleRates) {
if (sampleRate.isValid()) {
// no ridiculous sample rate values. prohibiting zero means
// avoiding a potential div-by-0 error in ::updateLatencies
Expand Down

0 comments on commit d5dba0d

Please sign in to comment.