Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwason committed Jan 9, 2025
1 parent ed8fb7d commit 4b9793e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions tesseract_common/include/tesseract_common/resource_locator.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ class GeneralResourceLocator : public ResourceLocator
using ConstPtr = std::shared_ptr<const GeneralResourceLocator>;
/**
* @brief Construct a new General Resource Locator object using the TESSERACT_RESOURCE_PATH environment variable
*
*
* @param environment_variables A vector of environment variables to search for paths
*/
GeneralResourceLocator(const std::vector<std::string>& environment_variables= {"TESSERACT_RESOURCE_PATH", "ROS_PACKAGE_PATH"});
GeneralResourceLocator(const std::vector<std::string>& environment_variables = { "TESSERACT_RESOURCE_PATH",
"ROS_PACKAGE_PATH" });
/**
* @brief Construct a new General Resource Locator object using the provided paths and/or the TESSERACT_RESOURCE_PATH
* environment variable
Expand All @@ -98,7 +99,8 @@ class GeneralResourceLocator : public ResourceLocator
* @param environment_variables A vector of environment variables to search for paths
*/
GeneralResourceLocator(const std::vector<tesseract_common::fs::path>& paths,
const std::vector<std::string>& environment_variables = {"TESSERACT_RESOURCE_PATH", "ROS_PACKAGE_PATH"});
const std::vector<std::string>& environment_variables = { "TESSERACT_RESOURCE_PATH",
"ROS_PACKAGE_PATH" });
GeneralResourceLocator(const GeneralResourceLocator&) = default;
GeneralResourceLocator& operator=(const GeneralResourceLocator&) = default;
GeneralResourceLocator(GeneralResourceLocator&&) = default;
Expand Down
3 changes: 2 additions & 1 deletion tesseract_common/src/resource_locator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ GeneralResourceLocator::GeneralResourceLocator(const std::vector<std::string>& e
}
}

GeneralResourceLocator::GeneralResourceLocator(const std::vector<tesseract_common::fs::path>& paths, const std::vector<std::string>& environment_variables)
GeneralResourceLocator::GeneralResourceLocator(const std::vector<tesseract_common::fs::path>& paths,
const std::vector<std::string>& environment_variables)
{
for (const auto& path : paths)
{
Expand Down

0 comments on commit 4b9793e

Please sign in to comment.