Fix QString use

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-11-13 17:36:49 -02:00 committed by Dirk Hohndel
parent dee20906e3
commit e7e58bf9ea

View file

@ -308,7 +308,7 @@ extern "C" bool string_sequence_contains(const char *string_sequence, const char
QString stringSequence(string_sequence); QString stringSequence(string_sequence);
QStringList strings = stringSequence.split(",", QString::SkipEmptyParts); QStringList strings = stringSequence.split(",", QString::SkipEmptyParts);
Q_FOREACH (QString string, strings) { Q_FOREACH (const QString& string, strings) {
if (string.trimmed().compare(QString(text).trimmed(), Qt::CaseInsensitive) == 0) if (string.trimmed().compare(QString(text).trimmed(), Qt::CaseInsensitive) == 0)
return true; return true;
} }