Skip to content

Commit

Permalink
Fix codacity warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHogan committed Aug 25, 2022
1 parent 747310a commit 5f3e951
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/api/traits.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@

namespace hermes {
namespace api {
Trait::Trait(TraitID id, std::vector<TraitID> conflict_traits, TraitType type)
Trait::Trait(TraitID id, const std::vector<TraitID> &conflict_traits,
TraitType type)
: id(id),
conflict_traits(conflict_traits),
type(type),
Expand Down
3 changes: 2 additions & 1 deletion src/api/traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ struct Trait {
OnLinkCallback onGetFn;

Trait() {}
Trait(TraitID id, std::vector<TraitID> conflict_traits, TraitType type);
Trait(TraitID id, const std::vector<TraitID> &conflict_traits,
TraitType type);
};

/** (File) Persistence trait */
Expand Down

0 comments on commit 5f3e951

Please sign in to comment.