forked from qt-creator/qt-creator
QmlEditorWidgets: Pass QVariant as const reference
Change-Id: Ib59cb25ffed6acc4f1ad6dd450b68dc30372b168 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
147ed4bae8
commit
6c0a018ac8
@@ -93,7 +93,7 @@ ContextPaneTextWidget::ContextPaneTextWidget(QWidget *parent) :
|
||||
connect(ui->styleComboBox, SIGNAL(currentIndexChanged(QString)), this, SLOT(onStyleComboBoxChanged(QString)));
|
||||
}
|
||||
|
||||
static inline bool checkIfBoolean(QVariant v)
|
||||
static inline bool checkIfBoolean(const QVariant &v)
|
||||
{
|
||||
return (v.toString() == QLatin1String("true") || v.toString() == QLatin1String("false"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user