Commit f5225c09 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Fix compilation with MSVC2010

Change-Id: Ieb2ba37c0a31ebf89d5d60451022784043945cc4
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent 2998d335
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment