Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/widgets/CSVFormatDialog.cpp Tue Jun 17 15:36:56 2014 +0100 +++ b/widgets/CSVFormatDialog.cpp Tue Jun 17 15:55:27 2014 +0100 @@ -130,13 +130,13 @@ m_sampleRateLabel = new QLabel(tr("Audio sample rate (Hz):")); layout->addWidget(m_sampleRateLabel, row, 0); - size_t sampleRates[] = { + int sampleRates[] = { 8000, 11025, 12000, 22050, 24000, 32000, 44100, 48000, 88200, 96000, 176400, 192000 }; m_sampleRateCombo = new QComboBox; - for (size_t i = 0; i < sizeof(sampleRates) / sizeof(sampleRates[0]); ++i) { + for (int i = 0; i < int(sizeof(sampleRates) / sizeof(sampleRates[0])); ++i) { m_sampleRateCombo->addItem(QString("%1").arg(sampleRates[i])); if (sampleRates[i] == m_format.getSampleRate()) { m_sampleRateCombo->setCurrentIndex(i);