aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-01-13 00:46:49 -0800
committerChris Robinson <[email protected]>2017-01-13 00:46:49 -0800
commit8e868823fd0226a960259363cd7b49ea51ece426 (patch)
tree8b66f70e089287f966687d3da338efb9ddb01e89 /utils
parente254a3f0c237634d8f1d329b74be67569c2c805a (diff)
Replace range-based for loops with QList iterators
Less than ideal, but some targets can't rely on C++11
Diffstat (limited to 'utils')
-rw-r--r--utils/alsoft-config/mainwindow.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp
index 370619bf..4ae89f09 100644
--- a/utils/alsoft-config/mainwindow.cpp
+++ b/utils/alsoft-config/mainwindow.cpp
@@ -678,8 +678,8 @@ void MainWindow::loadConfig(const QString &fname)
QStringList disabledCpuExts = settings.value("disable-cpu-exts").toStringList();
if(disabledCpuExts.size() == 1)
disabledCpuExts = disabledCpuExts[0].split(QChar(','));
- for(QString &str : disabledCpuExts)
- str = str.trimmed();
+ for(QStringList::iterator iter = disabledCpuExts.begin();iter != disabledCpuExts.end();iter++)
+ *iter = iter->trimmed();
ui->enableSSECheckBox->setChecked(!disabledCpuExts.contains("sse", Qt::CaseInsensitive));
ui->enableSSE2CheckBox->setChecked(!disabledCpuExts.contains("sse2", Qt::CaseInsensitive));
ui->enableSSE3CheckBox->setChecked(!disabledCpuExts.contains("sse3", Qt::CaseInsensitive));
@@ -689,8 +689,8 @@ void MainWindow::loadConfig(const QString &fname)
QStringList hrtf_paths = settings.value("hrtf-paths").toStringList();
if(hrtf_paths.size() == 1)
hrtf_paths = hrtf_paths[0].split(QChar(','));
- for(QString &str : hrtf_paths)
- str = str.trimmed();
+ for(QStringList::iterator iter = hrtf_paths.begin();iter != hrtf_paths.end();iter++)
+ *iter = iter->trimmed();
if(!hrtf_paths.empty() && !hrtf_paths.back().isEmpty())
ui->defaultHrtfPathsCheckBox->setCheckState(Qt::Unchecked);
else
@@ -745,8 +745,8 @@ void MainWindow::loadConfig(const QString &fname)
{
if(drivers.size() == 1)
drivers = drivers[0].split(QChar(','));
- for(QString &str : drivers)
- str = str.trimmed();
+ for(QStringList::iterator iter = drivers.begin();iter != drivers.end();iter++)
+ *iter = iter->trimmed();
bool lastWasEmpty = false;
foreach(const QString &backend, drivers)
@@ -798,8 +798,8 @@ void MainWindow::loadConfig(const QString &fname)
QStringList excludefx = settings.value("excludefx").toStringList();
if(excludefx.size() == 1)
excludefx = excludefx[0].split(QChar(','));
- for(QString &str : excludefx)
- str = str.trimmed();
+ for(QStringList::iterator iter = excludefx.begin();iter != excludefx.end();iter++)
+ *iter = iter->trimmed();
ui->enableEaxReverbCheck->setChecked(!excludefx.contains("eaxreverb", Qt::CaseInsensitive));
ui->enableStdReverbCheck->setChecked(!excludefx.contains("reverb", Qt::CaseInsensitive));
ui->enableChorusCheck->setChecked(!excludefx.contains("chorus", Qt::CaseInsensitive));