forked from qt-creator/qt-creator
FakeVim: 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: I9caa1cd8aca07a58071d566a6b300c1577f72c28 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -57,7 +57,6 @@
|
||||
#include <QTextDocumentFragment>
|
||||
#include <QTextEdit>
|
||||
#include <QMimeData>
|
||||
#include <QSharedPointer>
|
||||
#include <QDir>
|
||||
|
||||
#include <algorithm>
|
||||
@@ -2282,7 +2281,7 @@ public:
|
||||
QPointer<FakeVimHandler::Private> currentHandler;
|
||||
};
|
||||
|
||||
using BufferDataPtr = QSharedPointer<BufferData>;
|
||||
using BufferDataPtr = std::shared_ptr<BufferData>;
|
||||
void pullOrCreateBufferData();
|
||||
BufferDataPtr m_buffer;
|
||||
|
||||
|
Reference in New Issue
Block a user