Skip to content

Commit

Permalink
Merge pull request #14945 from zo9999/debug-info-selection-small-opti…
Browse files Browse the repository at this point in the history
…mization

Fix passing of string input parameter to Enable method of DebugInfoSelection struct
  • Loading branch information
cameel authored Mar 15, 2024
2 parents 33e3324 + 655a9d8 commit afda698
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion liblangutil/DebugInfoSelection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ std::optional<DebugInfoSelection> DebugInfoSelection::fromComponents(
return selection;
}

bool DebugInfoSelection::enable(std::string _component)
bool DebugInfoSelection::enable(std::string const& _component)
{
auto memberIt = componentMap().find(boost::trim_copy(_component));
if (memberIt == componentMap().end())
Expand Down
2 changes: 1 addition & 1 deletion liblangutil/DebugInfoSelection.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct DebugInfoSelection
std::vector<std::string> const& _componentNames,
bool _acceptWildcards = false
);
bool enable(std::string _component);
bool enable(std::string const& _component);

bool all() const noexcept;
bool any() const noexcept;
Expand Down

0 comments on commit afda698

Please sign in to comment.