forked from qt-creator/qt-creator
Fix compilation with MSVC2010
Change-Id: Ieb2ba37c0a31ebf89d5d60451022784043945cc4 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
2998d33562
commit
f5225c0928
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user