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:
@@ -229,7 +229,7 @@ void tst_cxx11::inlineNamespaceLookup()
|
||||
snapshot.insert(doc);
|
||||
|
||||
LookupContext context(doc, snapshot);
|
||||
QSharedPointer<Control> control = context.bindings()->control();
|
||||
std::shared_ptr<Control> control = context.bindings()->control();
|
||||
|
||||
QList<LookupItem> results = context.lookup(control->identifier("foo"), doc->globalNamespace());
|
||||
QCOMPARE(results.size(), 1); // the symbol is visible from the global scope
|
||||
|
||||
Reference in New Issue
Block a user