forked from qt-creator/qt-creator
FunctionDeclDefLinkFinder: 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: I41b753f52d06bb35988d1a57478e06daaec04f31 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -3,12 +3,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "cppquickfix.h"
|
||||
#include "cpprefactoringchanges.h"
|
||||
|
||||
#include <QString>
|
||||
#include <QCoreApplication>
|
||||
#include <QSharedPointer>
|
||||
#include <QFutureWatcher>
|
||||
#include <QTextCursor>
|
||||
|
||||
@@ -31,14 +29,14 @@ public:
|
||||
QTextCursor scannedSelection() const;
|
||||
|
||||
signals:
|
||||
void foundLink(QSharedPointer<FunctionDeclDefLink> link);
|
||||
void foundLink(std::shared_ptr<FunctionDeclDefLink> link);
|
||||
|
||||
private:
|
||||
void onFutureDone();
|
||||
|
||||
QTextCursor m_scannedSelection;
|
||||
QTextCursor m_nameSelection;
|
||||
QScopedPointer<QFutureWatcher<QSharedPointer<FunctionDeclDefLink> > > m_watcher;
|
||||
QScopedPointer<QFutureWatcher<std::shared_ptr<FunctionDeclDefLink>>> m_watcher;
|
||||
};
|
||||
|
||||
class FunctionDeclDefLink
|
||||
|
||||
Reference in New Issue
Block a user