From 36f23df6c32330ecaf2b82002a3a14fb7fb55cc5 Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 3 Feb 2020 11:13:27 +0100 Subject: CppTools: Use unshared object for CppCodeModelSettings There's nothing shared here, only ever one copy. Ideally, this should be const outside CppToolsPlugin, but some settings are modified directly. Change-Id: I775b9151a244b3cc44d28bc992a041c42d234a18 Reviewed-by: Christian Stenger --- src/plugins/cpptools/cpptoolsplugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/cpptools/cpptoolsplugin.h') diff --git a/src/plugins/cpptools/cpptoolsplugin.h b/src/plugins/cpptools/cpptoolsplugin.h index 8035c08785..d52b046eab 100644 --- a/src/plugins/cpptools/cpptoolsplugin.h +++ b/src/plugins/cpptools/cpptoolsplugin.h @@ -70,7 +70,7 @@ public: bool initialize(const QStringList &arguments, QString *errorMessage) final; void extensionsInitialized() final; - QSharedPointer codeModelSettings() const; + CppCodeModelSettings *codeModelSettings(); public slots: void switchHeaderSource(); -- cgit v1.2.1