diff options
author | hjk <hjk@qt.io> | 2020-02-03 11:13:27 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-02-04 07:55:01 +0000 |
commit | 36f23df6c32330ecaf2b82002a3a14fb7fb55cc5 (patch) | |
tree | 0ae17c6b82ed045745e42268c8fddd84cb30fe66 /src/plugins/cpptools/cpptoolsplugin.h | |
parent | 85d9756c006dd5020fce07194b58157cd35626a2 (diff) | |
download | qt-creator-36f23df6c32330ecaf2b82002a3a14fb7fb55cc5.tar.gz |
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 <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.h')
-rw-r--r-- | src/plugins/cpptools/cpptoolsplugin.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<CppCodeModelSettings> codeModelSettings() const; + CppCodeModelSettings *codeModelSettings(); public slots: void switchHeaderSource(); |