mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Explicitly define copy and move operators/constructors for ScriptProfileStats
Fixes Coverity 1488768
This commit is contained in:
parent
5118e7f86b
commit
aec2fbf7dc
1 changed files with 8 additions and 2 deletions
|
@ -22,10 +22,16 @@ namespace detail
|
|||
class ScriptProfileStats
|
||||
{
|
||||
public:
|
||||
ScriptProfileStats() { }
|
||||
ScriptProfileStats() = default;
|
||||
ScriptProfileStats(std::string arg_name) : name(std::move(arg_name)) { }
|
||||
|
||||
virtual ~ScriptProfileStats() { }
|
||||
virtual ~ScriptProfileStats() = default;
|
||||
|
||||
ScriptProfileStats(ScriptProfileStats&&) = default;
|
||||
ScriptProfileStats(const ScriptProfileStats&) = default;
|
||||
|
||||
ScriptProfileStats& operator=(ScriptProfileStats&&) = default;
|
||||
ScriptProfileStats& operator=(const ScriptProfileStats&) = default;
|
||||
|
||||
const auto Name() const { return name; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue