CPlusPlus tools: Fix build with Qt 5

error: reference to type 'CPlusPlus::ClassOrNamespace *const'
could not bind to an lvalue of type
'const CPlusPlus::ClassOrNamespace *'
    if (interfaces.contains(u)) {

Amends f7097cef19

Fixes: QTCREATORBUG-27806
Change-Id: Ia5c27260f71bf35c87352545fff42dcaef1f2649
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Eike Ziller
2022-07-07 11:32:34 +02:00
parent fae3ba1a1b
commit b33a1c62ed

View File

@@ -403,7 +403,7 @@ protected:
if (Symbol *s = klass->find(accept0)) { if (Symbol *s = klass->find(accept0)) {
if (Function *meth = s->type()->asFunctionType()) { if (Function *meth = s->type()->asFunctionType()) {
if (! meth->isPureVirtual()) { if (! meth->isPureVirtual()) {
for (const ClassOrNamespace *u : b->usings()) { for (ClassOrNamespace *u : b->usings()) {
if (interfaces.contains(u)) { if (interfaces.contains(u)) {
// qDebug() << oo(klass->name()) << "implements" << oo(u->symbols().first()->name()); // qDebug() << oo(klass->name()) << "implements" << oo(u->symbols().first()->name());
} else { } else {