aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/vcsbase
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2020-01-29 09:41:05 +0100
committerhjk <hjk@qt.io>2020-01-29 09:06:43 +0000
commit6ad79a8c447a11a29b913089562f26794a5c5650 (patch)
tree38abd77de9232ebf72cd3be026647b84744a306f /src/plugins/vcsbase
parentae70750beb21741bd7cd035e2967b40dd924641a (diff)
Vcs: Use QPointer for VcsBasePlugin::m_versionControl
Ownership of the object is currently being move out of the class. Make it safe to delete here nevertheless during the transition phase. Change-Id: I54b832bd1b149e63e0b77f17dc9932a1314cf1e3 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/vcsbase')
-rw-r--r--src/plugins/vcsbase/vcsbaseplugin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/vcsbase/vcsbaseplugin.h b/src/plugins/vcsbase/vcsbaseplugin.h
index a7109e1625..31c8968b86 100644
--- a/src/plugins/vcsbase/vcsbaseplugin.h
+++ b/src/plugins/vcsbase/vcsbaseplugin.h
@@ -218,7 +218,7 @@ private:
bool supportsRepositoryCreation() const;
QPointer<VcsBaseSubmitEditor> m_submitEditor;
- Core::IVersionControl *m_versionControl = nullptr;
+ QPointer<Core::IVersionControl> m_versionControl;
Core::Context m_context;
VcsBasePluginState m_state;
int m_actionState = -1;