Skip to content

Commit 2cd8ad0

Browse files
committed
Add missing const
1 parent 084cbd6 commit 2cd8ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/project_parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ Project::Project(const Project *parent, const std::string &path, bool build) {
504504
package.name = package_str;
505505
} else if (close_bracket != std::string::npos) {
506506
package.name = package_str.substr(0, open_bracket);
507-
auto features = package_str.substr(open_bracket + 1, close_bracket - open_bracket - 1);
507+
const auto features = package_str.substr(open_bracket + 1, close_bracket - open_bracket - 1);
508508
std::istringstream feature_stream{features};
509509
std::string feature;
510510
while (std::getline(feature_stream, feature, ',')) {

0 commit comments

Comments
 (0)