Skip to content
Snippets Groups Projects
Commit 6c0a018a authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

QmlEditorWidgets: Pass QVariant as const reference


Change-Id: Ib59cb25ffed6acc4f1ad6dd450b68dc30372b168
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 147ed4ba
No related branches found
No related tags found
No related merge requests found
......@@ -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"));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment