From 2cd8ad0f18e98316b1187d8597cba70a680856d9 Mon Sep 17 00:00:00 2001 From: cursey Date: Mon, 27 Dec 2021 01:13:16 -0800 Subject: [PATCH] Add missing const --- src/project_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/project_parser.cpp b/src/project_parser.cpp index 98d4c0d..00c7735 100644 --- a/src/project_parser.cpp +++ b/src/project_parser.cpp @@ -504,7 +504,7 @@ Project::Project(const Project *parent, const std::string &path, bool build) { package.name = package_str; } else if (close_bracket != std::string::npos) { package.name = package_str.substr(0, open_bracket); - auto features = package_str.substr(open_bracket + 1, close_bracket - open_bracket - 1); + const auto features = package_str.substr(open_bracket + 1, close_bracket - open_bracket - 1); std::istringstream feature_stream{features}; std::string feature; while (std::getline(feature_stream, feature, ',')) {