diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2024-02-01 15:03:13 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2024-02-01 15:12:45 +0000 |
commit | 2853237fd0dbb352c2fa72677e20f4a4e5a76189 (patch) | |
tree | 4689fba95db840ad8fe5d86bea060e25cb8086d0 /src/plugins/diffeditor/diffeditor.h | |
parent | b1aec1b356f08b75ab9bcdc3f9ddf2f670dece0b (diff) |
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>
Diffstat (limited to 'src/plugins/diffeditor/diffeditor.h')
-rw-r--r-- | src/plugins/diffeditor/diffeditor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/diffeditor/diffeditor.h b/src/plugins/diffeditor/diffeditor.h index 3bf270b524..e00a6e0fe4 100644 --- a/src/plugins/diffeditor/diffeditor.h +++ b/src/plugins/diffeditor/diffeditor.h @@ -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; |