Applied performance-unnecessary-value-param clang-tidy fixes
This commit is contained in:
@@ -354,7 +354,7 @@ tvl::value_t context_filter::match(const diagram &d, const element &e) const
|
||||
}
|
||||
|
||||
paths_filter::paths_filter(filter_t type, const std::filesystem::path &root,
|
||||
std::vector<std::filesystem::path> p)
|
||||
const std::vector<std::filesystem::path> &p)
|
||||
: filter_visitor{type}
|
||||
, root_{root}
|
||||
{
|
||||
@@ -420,7 +420,7 @@ void diagram_filter::add_exclusive_filter(std::unique_ptr<filter_visitor> fv)
|
||||
}
|
||||
|
||||
bool diagram_filter::should_include(
|
||||
namespace_ ns, const std::string &name) const
|
||||
const namespace_ &ns, const std::string &name) const
|
||||
{
|
||||
if (should_include(ns)) {
|
||||
element e{namespace_{}};
|
||||
|
||||
@@ -314,7 +314,7 @@ private:
|
||||
|
||||
struct paths_filter : public filter_visitor {
|
||||
paths_filter(filter_t type, const std::filesystem::path &root,
|
||||
std::vector<std::filesystem::path> p);
|
||||
const std::vector<std::filesystem::path> &p);
|
||||
|
||||
virtual ~paths_filter() = default;
|
||||
|
||||
@@ -334,7 +334,7 @@ public:
|
||||
|
||||
void add_exclusive_filter(std::unique_ptr<filter_visitor> fv);
|
||||
|
||||
bool should_include(namespace_ ns, const std::string &name) const;
|
||||
bool should_include(const namespace_ &ns, const std::string &name) const;
|
||||
|
||||
template <typename T> bool should_include(const T &e) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user