forked from qt-creator/qt-creator
DiffEditor: 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: I8364f20fddca43c22d47ba8df07a06a176950695 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -43,7 +43,7 @@ public:
|
||||
|
||||
private:
|
||||
DiffEditor();
|
||||
void setDocument(QSharedPointer<DiffEditorDocument> doc);
|
||||
void setDocument(std::shared_ptr<DiffEditorDocument> doc);
|
||||
|
||||
void documentHasChanged();
|
||||
void toggleDescription();
|
||||
@@ -69,7 +69,7 @@ private:
|
||||
IDiffView *nextView();
|
||||
void setupView(IDiffView *view);
|
||||
|
||||
QSharedPointer<DiffEditorDocument> m_document;
|
||||
std::shared_ptr<DiffEditorDocument> m_document;
|
||||
DescriptionEditorWidget *m_descriptionWidget = nullptr;
|
||||
UnifiedView *m_unifiedView = nullptr;
|
||||
SideBySideView *m_sideBySideView = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user