File tree 1 file changed +5
-5
lines changed
pluginlib/include/pluginlib
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -488,12 +488,12 @@ std::string ClassLoader<T>::getClassLibraryPath(const std::string & lookup_name)
488
488
RCUTILS_LOG_DEBUG_NAMED (" pluginlib.ClassLoader" ,
489
489
" Iterating through all possible paths where %s could be located..." ,
490
490
library_name.c_str ());
491
- for (auto it = paths_to_try.begin (); it != paths_to_try.end (); it ++) {
492
- RCUTILS_LOG_DEBUG_NAMED (" pluginlib.ClassLoader" , " Checking path %s " , it ->c_str ());
493
- if (rcpputils::fs::exists (*it )) {
491
+ for (auto path_it = paths_to_try.begin (); path_it != paths_to_try.end (); path_it ++) {
492
+ RCUTILS_LOG_DEBUG_NAMED (" pluginlib.ClassLoader" , " Checking path %s " , path_it ->c_str ());
493
+ if (rcpputils::fs::exists (*path_it )) {
494
494
RCUTILS_LOG_DEBUG_NAMED (" pluginlib.ClassLoader" , " Library %s found at explicit path %s." ,
495
- library_name.c_str (), it ->c_str ());
496
- return *it ;
495
+ library_name.c_str (), path_it ->c_str ());
496
+ return *path_it ;
497
497
}
498
498
}
499
499
std::ostringstream error_msg;
You can’t perform that action at this time.
0 commit comments