Mercurial > hg > svgui
diff widgets/PluginParameterDialog.cpp @ 249:e6d0b097d102 sv1-1.0rc1
* more compile warning fixes
author | Chris Cannam |
---|---|
date | Mon, 30 Apr 2007 14:06:45 +0000 |
parents | df791d8c8f58 |
children | 948a3b05798b |
line wrap: on
line diff
--- a/widgets/PluginParameterDialog.cpp Mon Apr 30 13:36:23 2007 +0000 +++ b/widgets/PluginParameterDialog.cpp Mon Apr 30 14:06:45 2007 +0000 @@ -193,8 +193,6 @@ m_advanced->setLayout(advancedLayout); grid->addWidget(m_advanced, 3, 0); - bool haveAdvanced = false; - m_channelBox = new QGroupBox; m_channelBox->setTitle(tr("Channels")); advancedLayout->addWidget(m_channelBox); @@ -373,7 +371,7 @@ blockSizeCombo->setEditable(true); bool found = false; for (int i = 0; i < 14; ++i) { - int val = pow(2, i + 3); + int val = 1 << (i + 3); blockSizeCombo->addItem(QString("%1").arg(val)); if (val == size) { blockSizeCombo->setCurrentIndex(i); @@ -395,7 +393,7 @@ incrementCombo->setEditable(true); found = false; for (int i = 0; i < 14; ++i) { - int val = pow(2, i + 3); + int val = 1 << (i + 3); incrementCombo->addItem(QString("%1").arg(val)); if (val == increment) { incrementCombo->setCurrentIndex(i);