forked from qt-creator/qt-creator
LookupContext: Replace QSharedPointer with std::shared_ptr
According to https://wiki.qt.io/Things_To_Look_Out_For_In_Reviews QSharedPointer impl is poor and it's going to be removed from Qt 7. Change-Id: Ia7ec4b427c5971d6bd375659b291a9aad2ead253 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -770,7 +770,7 @@ public:
|
||||
if (!targetCoN)
|
||||
targetCoN = targetContext.globalNamespace();
|
||||
UseMinimalNames useMinimalNames(targetCoN);
|
||||
Control *control = context().bindings()->control().data();
|
||||
Control *control = context().bindings()->control().get();
|
||||
QList<const Function *> insertedFunctions;
|
||||
for (ClassItem *classItem : std::as_const(m_factory->classFunctionModel->classes)) {
|
||||
if (classItem->checkState() == Qt::Unchecked)
|
||||
@@ -904,7 +904,7 @@ public:
|
||||
env.switchScope(decl->enclosingScope());
|
||||
UseMinimalNames q(targetCoN);
|
||||
env.enter(&q);
|
||||
Control *control = context().bindings()->control().data();
|
||||
Control *control = context().bindings()->control().get();
|
||||
|
||||
// rewrite the function type and name + create definition
|
||||
const FullySpecifiedType type = rewriteType(decl->type(), &env, control);
|
||||
|
||||
Reference in New Issue
Block a user