diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-05-16 11:24:14 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-05-17 10:36:13 +0200 |
commit | 580539ab08a098e7f348fee3c46fbf5d44cd4d54 (patch) | |
tree | b73f35182abf0b278ba435925a6cc01381705fc4 /src/buildtool/build_engine/target_map/utils.hpp | |
parent | 0f96e596f42ef8619f173c547d7ee6c1be3aba12 (diff) | |
download | justbuild-580539ab08a098e7f348fee3c46fbf5d44cd4d54.tar.gz |
RepositoryConfig: Instance should not be changed once populated
Once a RepositoryConfig instance gets populated, it must never be
changed again. Therefore, all functions accepting these instances
should only take them as pointers to const.
Diffstat (limited to 'src/buildtool/build_engine/target_map/utils.hpp')
-rw-r--r-- | src/buildtool/build_engine/target_map/utils.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/build_engine/target_map/utils.hpp b/src/buildtool/build_engine/target_map/utils.hpp index b3fb5a7c..8db440c8 100644 --- a/src/buildtool/build_engine/target_map/utils.hpp +++ b/src/buildtool/build_engine/target_map/utils.hpp @@ -36,7 +36,7 @@ auto obtainTargetByName(const SubExprEvaluator&, const ExpressionPtr&, const Configuration&, const Base::EntityName&, - const gsl::not_null<RepositoryConfig*>&, + const gsl::not_null<const RepositoryConfig*>&, std::unordered_map<BuildMaps::Target::ConfiguredTarget, AnalysedTargetPtr> const&) -> AnalysedTargetPtr; |