Applied performance-unnecessary-value-param clang-tidy fixes
This commit is contained in:
@@ -51,7 +51,7 @@ std::shared_ptr<decorator> decorator::from_string(std::string_view c)
|
||||
return {};
|
||||
}
|
||||
|
||||
bool decorator::applies_to_diagram(std::string name)
|
||||
bool decorator::applies_to_diagram(const std::string &name)
|
||||
{
|
||||
return diagrams.empty() ||
|
||||
(std::find(diagrams.begin(), diagrams.end(), name) != diagrams.end());
|
||||
@@ -174,7 +174,7 @@ std::shared_ptr<decorator> association::from_string(std::string_view c)
|
||||
}
|
||||
|
||||
std::vector<std::shared_ptr<decorator>> parse(
|
||||
std::string documentation_block, std::string clanguml_tag)
|
||||
std::string documentation_block, const std::string &clanguml_tag)
|
||||
{
|
||||
std::vector<std::shared_ptr<decorator>> res;
|
||||
const std::string begin_tag{"@" + clanguml_tag};
|
||||
|
||||
@@ -40,7 +40,7 @@ struct decorator {
|
||||
|
||||
static std::shared_ptr<decorator> from_string(std::string_view c);
|
||||
|
||||
bool applies_to_diagram(std::string name);
|
||||
bool applies_to_diagram(const std::string &name);
|
||||
|
||||
protected:
|
||||
decorator_toks tokenize(const std::string &label, std::string_view c);
|
||||
@@ -97,7 +97,7 @@ struct association : public relationship {
|
||||
};
|
||||
|
||||
std::vector<std::shared_ptr<decorator>> parse(
|
||||
std::string documentation_block, std::string clanguml_tag = "uml");
|
||||
std::string documentation_block, const std::string &clanguml_tag = "uml");
|
||||
|
||||
} // namespace decorators
|
||||
} // namespace clanguml
|
||||
|
||||
Reference in New Issue
Block a user