forked from qt-creator/qt-creator
Beautifier: Add const wherever applicable
Change-Id: Iba3e5793bfd0e4057074e2b04e6353ba09aa4a5f Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
committed by
David Schulz
parent
f06482ca7f
commit
e7789de28c
@@ -65,7 +65,7 @@ void ConfigurationPanel::setSettings(AbstractSettings *settings)
|
||||
|
||||
void ConfigurationPanel::setCurrentConfiguration(const QString &text)
|
||||
{
|
||||
int textIndex = ui->configurations->findText(text);
|
||||
const int textIndex = ui->configurations->findText(text);
|
||||
if (textIndex != -1)
|
||||
ui->configurations->setCurrentIndex(textIndex);
|
||||
}
|
||||
@@ -117,7 +117,7 @@ void ConfigurationPanel::populateConfigurations(const QString &key)
|
||||
const QString currentText = (!key.isEmpty()) ? key : ui->configurations->currentText();
|
||||
ui->configurations->clear();
|
||||
ui->configurations->addItems(m_settings->styles());
|
||||
int textIndex = ui->configurations->findText(currentText);
|
||||
const int textIndex = ui->configurations->findText(currentText);
|
||||
if (textIndex != -1)
|
||||
ui->configurations->setCurrentIndex(textIndex);
|
||||
updateButtons();
|
||||
|
||||
Reference in New Issue
Block a user