This is an automated email from the ASF dual-hosted git repository.
bmahler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git
The following commit(s) were added to refs/heads/master by this push:
new dee6043 Replaced virtual with override for filter destructors in
allocator.
dee6043 is described below
commit dee60433f6d25a4f072fec8a8a3b81bf43bb17ba
Author: Benjamin Mahler <[email protected]>
AuthorDate: Tue Jun 25 13:31:46 2019 -0400
Replaced virtual with override for filter destructors in allocator.
This silences the tidy warnings about using virtual.
---
src/master/allocator/mesos/hierarchical.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/master/allocator/mesos/hierarchical.cpp
b/src/master/allocator/mesos/hierarchical.cpp
index a9e2b7b..c069b24 100644
--- a/src/master/allocator/mesos/hierarchical.cpp
+++ b/src/master/allocator/mesos/hierarchical.cpp
@@ -91,7 +91,7 @@ public:
: _resources(_resources),
_expired(after(timeout)) {}
- virtual ~RefusedOfferFilter()
+ ~RefusedOfferFilter() override
{
// Cancel the timeout upon destruction to avoid lingering timers.
_expired.discard();
@@ -146,7 +146,7 @@ public:
RefusedInverseOfferFilter(const Duration& timeout)
: _expired(after(timeout)) {}
- virtual ~RefusedInverseOfferFilter()
+ ~RefusedInverseOfferFilter() override
{
// Cancel the timeout upon destruction to avoid lingering timers.
_expired.discard();