mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix clang-tidy modernize-pass-by-value warnings in headers
This commit is contained in:
parent
c0e275604f
commit
d19486d039
2 changed files with 4 additions and 4 deletions
|
@ -187,8 +187,8 @@ private:
|
|||
* @param arg_a an analyzer instance to add to an analyzer set.
|
||||
* @param arg_key hash key representing the analyzer's \c AnalyzerArgs.
|
||||
*/
|
||||
RemoveMod(const zeek::Tag& arg_tag, std::unique_ptr<zeek::detail::HashKey> arg_key)
|
||||
: Modification(), tag(arg_tag), key(std::move(arg_key)) {}
|
||||
RemoveMod(zeek::Tag arg_tag, std::unique_ptr<zeek::detail::HashKey> arg_key)
|
||||
: Modification(), tag(std::move(arg_tag)), key(std::move(arg_key)) {}
|
||||
~RemoveMod() override {}
|
||||
bool Perform(AnalyzerSet* set) override;
|
||||
void Abort() override {}
|
||||
|
|
|
@ -21,8 +21,8 @@ public:
|
|||
* @param name name of the Spicy EVT module.
|
||||
* @param description text describing the module further
|
||||
*/
|
||||
explicit SpicyModuleInfo(const std::string& name, const std::string& description)
|
||||
: name(name), description(description) {}
|
||||
explicit SpicyModuleInfo(std::string name, std::string description)
|
||||
: name(std::move(name)), description(std::move(description)) {}
|
||||
|
||||
/** @return textual description of the module */
|
||||
const auto& Description() const { return description; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue