mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
script_opt: Add missing virtual destructor (cppcoreguidelines-virtual-class-destructor)
This commit is contained in:
parent
c392cda11c
commit
d6d56d330b
2 changed files with 4 additions and 0 deletions
|
@ -2,6 +2,8 @@ Checks: [-*,
|
||||||
bugprone-*,
|
bugprone-*,
|
||||||
performance-*,
|
performance-*,
|
||||||
|
|
||||||
|
cppcoreguidelines-virtual-class-destructor,
|
||||||
|
|
||||||
# Skipping these temporarily because they are very noisy
|
# Skipping these temporarily because they are very noisy
|
||||||
-bugprone-narrowing-conversions,
|
-bugprone-narrowing-conversions,
|
||||||
-bugprone-unchecked-optional-access,
|
-bugprone-unchecked-optional-access,
|
||||||
|
|
|
@ -174,6 +174,8 @@ public:
|
||||||
inits_vec.resize(num_inits);
|
inits_vec.resize(num_inits);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual ~CPP_AbstractInits() = default;
|
||||||
|
|
||||||
// Initialize the given cohort of elements.
|
// Initialize the given cohort of elements.
|
||||||
void InitializeCohort(InitsManager* im, int cohort) {
|
void InitializeCohort(InitsManager* im, int cohort) {
|
||||||
// Get this object's vector-of-vector-of-indices.
|
// Get this object's vector-of-vector-of-indices.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue