Skip to content

Commit

Permalink
Overloaded fs::path and std::string addSearchPath call is ambigous, s…
Browse files Browse the repository at this point in the history
…o remove the std::string one
  • Loading branch information
jmarrec committed Dec 19, 2024
1 parent 4613368 commit 54a43e6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/model/PythonPluginSearchPaths.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ namespace model {

const std::vector<std::string>& PythonPluginSearchPaths_Impl::outputVariableNames() const {
static std::vector<std::string> result;
if (result.empty()) {
}
return result;
}

Expand Down Expand Up @@ -191,10 +189,6 @@ namespace model {
return getImpl<detail::PythonPluginSearchPaths_Impl>()->setSearchPaths(searchPaths);
}

bool PythonPluginSearchPaths::addSearchPath(const std::string& searchPath) {
return getImpl<detail::PythonPluginSearchPaths_Impl>()->addSearchPath(openstudio::toPath(searchPath));
}

bool PythonPluginSearchPaths::setSearchPaths(const std::vector<std::string>& searchPaths) {
std::vector<openstudio::path> paths;
paths.reserve(searchPaths.size());
Expand Down
1 change: 0 additions & 1 deletion src/model/PythonPluginSearchPaths.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ namespace model {
bool setSearchPaths(const std::vector<openstudio::path>& searchPaths);

// Convenience, forwards to the openstudio::path equivalent
bool addSearchPath(const std::string& searchPath);
bool setSearchPaths(const std::vector<std::string>& searchPaths);

void clearSearchPaths();
Expand Down

0 comments on commit 54a43e6

Please sign in to comment.