Add missing const

main
cursey 3 years ago
parent 084cbd6159
commit 2cd8ad0f18
No known key found for this signature in database
GPG Key ID: A6A7163A1B8FD42C

@ -504,7 +504,7 @@ Project::Project(const Project *parent, const std::string &path, bool build) {
package.name = package_str; package.name = package_str;
} else if (close_bracket != std::string::npos) { } else if (close_bracket != std::string::npos) {
package.name = package_str.substr(0, open_bracket); 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::istringstream feature_stream{features};
std::string feature; std::string feature;
while (std::getline(feature_stream, feature, ',')) { while (std::getline(feature_stream, feature, ',')) {

Loading…
Cancel
Save