Skip to content

Commit

Permalink
Fix wShadow compile warning (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveMacenski authored Oct 27, 2023
1 parent 6c441f7 commit 16ae61c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pluginlib/include/pluginlib/class_loader_imp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,12 +488,12 @@ std::string ClassLoader<T>::getClassLibraryPath(const std::string & lookup_name)
RCUTILS_LOG_DEBUG_NAMED("pluginlib.ClassLoader",
"Iterating through all possible paths where %s could be located...",
library_name.c_str());
for (auto it = paths_to_try.begin(); it != paths_to_try.end(); it++) {
RCUTILS_LOG_DEBUG_NAMED("pluginlib.ClassLoader", "Checking path %s ", it->c_str());
if (rcpputils::fs::exists(*it)) {
for (auto path_it = paths_to_try.begin(); path_it != paths_to_try.end(); path_it++) {
RCUTILS_LOG_DEBUG_NAMED("pluginlib.ClassLoader", "Checking path %s ", path_it->c_str());
if (rcpputils::fs::exists(*path_it)) {
RCUTILS_LOG_DEBUG_NAMED("pluginlib.ClassLoader", "Library %s found at explicit path %s.",
library_name.c_str(), it->c_str());
return *it;
library_name.c_str(), path_it->c_str());
return *path_it;
}
}
std::ostringstream error_msg;
Expand Down

0 comments on commit 16ae61c

Please sign in to comment.