Commit 11962ebd authored by Wolfgang Merkt's avatar Wolfgang Merkt
Browse files

Use C++98 style iterators

parent e5bbc0f6
Pipeline #15155 passed with stage
in 195 minutes and 43 seconds
...@@ -57,9 +57,9 @@ namespace pinocchio ...@@ -57,9 +57,9 @@ namespace pinocchio
// To support ROS devel/isolated spaces, we also need to look one package above the package.xml: // To support ROS devel/isolated spaces, we also need to look one package above the package.xml:
fs::path path; fs::path path;
std::vector<std::string> list_of_paths; std::vector<std::string> list_of_paths;
for (const auto& path_string : raw_list_of_paths) { for (std::vector<std::string>::iterator it = raw_list_of_paths.begin(); it != raw_list_of_paths.end(); ++it) {
list_of_paths.push_back(path_string); list_of_paths.push_back(*it);
path = fs::path(path_string); path = fs::path(*it);
if (fs::exists(path / "package.xml")) { if (fs::exists(path / "package.xml")) {
list_of_paths.push_back(fs::path(path / "..").string()); list_of_paths.push_back(fs::path(path / "..").string());
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment