diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2021-08-20 11:21:06 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2021-08-27 10:53:54 +0000 |
commit | a952500e902eb0a0fe5b5dbcdafb6cb66fb88141 (patch) | |
tree | 744dfbbf969359a3cb147b6bbc8ee47fe361a7ab /src/plugins/cpptools/cpptools_utils.h | |
parent | 5d8551559af2300a67815582198b4ce580a7bba2 (diff) | |
download | qt-creator-a952500e902eb0a0fe5b5dbcdafb6cb66fb88141.tar.gz |
CppTools: Use only const pointers for ProjectInfo and ProjectPart
All members were already const, but this makes it clear at all points of
use that these data structures are immutable.
Change-Id: Iea615c090bde462c445d15223caccc561b0c713d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cpptools_utils.h')
-rw-r--r-- | src/plugins/cpptools/cpptools_utils.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/cpptools/cpptools_utils.h b/src/plugins/cpptools/cpptools_utils.h index f6efb65ef2..73b4497ed7 100644 --- a/src/plugins/cpptools/cpptools_utils.h +++ b/src/plugins/cpptools/cpptools_utils.h @@ -44,8 +44,8 @@ public: Q_DECLARE_FLAGS(Hints, Hint) ProjectPartInfo() = default; - ProjectPartInfo(const ProjectPart::Ptr &projectPart, - const QList<ProjectPart::Ptr> &projectParts, + ProjectPartInfo(const ProjectPart::ConstPtr &projectPart, + const QList<ProjectPart::ConstPtr> &projectParts, Hints hints) : projectPart(projectPart) , projectParts(projectParts) @@ -54,8 +54,8 @@ public: } public: - ProjectPart::Ptr projectPart; - QList<ProjectPart::Ptr> projectParts; // The one above as first plus alternatives. + ProjectPart::ConstPtr projectPart; + QList<ProjectPart::ConstPtr> projectParts; // The one above as first plus alternatives. Hints hints = NoHint; }; |