Fix compilation with MSVC2010

Change-Id: Ieb2ba37c0a31ebf89d5d60451022784043945cc4
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2015-02-04 17:06:47 +02:00
committed by Orgad Shaneh
parent 2998d33562
commit f5225c0928

View File

@@ -948,7 +948,7 @@ static QStringList matchingTestFunctions(const QStringList &testFunctions,
static QObject *objectWithClassName(const QList<QObject *> &objects, const QString &className)
{
return Utils::findOr(objects, 0, [className] (QObject *object) {
return Utils::findOr(objects, 0, [className] (QObject *object) -> bool {
QString candidate = QString::fromUtf8(object->metaObject()->className());
const int colonIndex = candidate.lastIndexOf(QLatin1Char(':'));
if (colonIndex != -1 && colonIndex < candidate.size() - 1)