Mercurial > hg > svgui
comparison widgets/CSVFormatDialog.cpp @ 807:e4773943c9c1 warnfix_no_size_t
More unsigned/long and warning fixes
author | Chris Cannam |
---|---|
date | Tue, 17 Jun 2014 15:55:27 +0100 |
parents | cdafb1a438e8 |
children | de9472751d31 |
comparison
equal
deleted
inserted
replaced
806:4c8ca536b54f | 807:e4773943c9c1 |
---|---|
128 m_format.getTimeUnits() == CSVFormat::TimeSeconds ? 0 : 1 : 2); | 128 m_format.getTimeUnits() == CSVFormat::TimeSeconds ? 0 : 1 : 2); |
129 | 129 |
130 m_sampleRateLabel = new QLabel(tr("Audio sample rate (Hz):")); | 130 m_sampleRateLabel = new QLabel(tr("Audio sample rate (Hz):")); |
131 layout->addWidget(m_sampleRateLabel, row, 0); | 131 layout->addWidget(m_sampleRateLabel, row, 0); |
132 | 132 |
133 size_t sampleRates[] = { | 133 int sampleRates[] = { |
134 8000, 11025, 12000, 22050, 24000, 32000, | 134 8000, 11025, 12000, 22050, 24000, 32000, |
135 44100, 48000, 88200, 96000, 176400, 192000 | 135 44100, 48000, 88200, 96000, 176400, 192000 |
136 }; | 136 }; |
137 | 137 |
138 m_sampleRateCombo = new QComboBox; | 138 m_sampleRateCombo = new QComboBox; |
139 for (size_t i = 0; i < sizeof(sampleRates) / sizeof(sampleRates[0]); ++i) { | 139 for (int i = 0; i < int(sizeof(sampleRates) / sizeof(sampleRates[0])); ++i) { |
140 m_sampleRateCombo->addItem(QString("%1").arg(sampleRates[i])); | 140 m_sampleRateCombo->addItem(QString("%1").arg(sampleRates[i])); |
141 if (sampleRates[i] == m_format.getSampleRate()) { | 141 if (sampleRates[i] == m_format.getSampleRate()) { |
142 m_sampleRateCombo->setCurrentIndex(i); | 142 m_sampleRateCombo->setCurrentIndex(i); |
143 } | 143 } |
144 } | 144 } |