From e7e58bf9ea2aa80b6130e0201a6b365449529c60 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 13 Nov 2014 17:36:49 -0200 Subject: [PATCH] Fix QString use Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qthelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qthelper.cpp b/qthelper.cpp index 6769e8abe..e165e85ad 100644 --- a/qthelper.cpp +++ b/qthelper.cpp @@ -308,7 +308,7 @@ extern "C" bool string_sequence_contains(const char *string_sequence, const char QString stringSequence(string_sequence); 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) return true; }