aboutsummaryrefslogtreecommitdiff
path: root/osp/impl/service_publisher_impl.h
diff options
context:
space:
mode:
authorAbraham Corea Diaz <abrahamcd@google.com>2021-07-09 23:35:39 +0000
committerOpenscreen LUCI CQ <openscreen-scoped@luci-project-accounts.iam.gserviceaccount.com>2021-07-14 01:27:13 +0000
commitbffb5c2247c5705401499ff13b686b119d9918b6 (patch)
tree37035bdd2216518204b6e52d7ba353368258febf /osp/impl/service_publisher_impl.h
parent7e167e2bc4c8c0c650f00b995e1e20cb1ae1f479 (diff)
downloadopenscreen-bffb5c2247c5705401499ff13b686b119d9918b6.tar.gz
Define virtual destructors in Client interfaces.
This patch adds virtual destructors to all Client and Delegate interfaces that did not have one. Bug: b/156129407 Change-Id: I8b7365ab8a38b9e76a45ced08dd94d1aa595209b Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/3011415 Commit-Queue: Jordan Bayles <jophba@chromium.org> Reviewed-by: Jordan Bayles <jophba@chromium.org> Reviewed-by: mark a. foltz <mfoltz@chromium.org>
Diffstat (limited to 'osp/impl/service_publisher_impl.h')
-rw-r--r--osp/impl/service_publisher_impl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/osp/impl/service_publisher_impl.h b/osp/impl/service_publisher_impl.h
index 1817ab1f..d15e4dc9 100644
--- a/osp/impl/service_publisher_impl.h
+++ b/osp/impl/service_publisher_impl.h
@@ -18,7 +18,6 @@ class ServicePublisherImpl final : public ServicePublisher,
class Delegate {
public:
Delegate();
- virtual ~Delegate();
void SetPublisherImpl(ServicePublisherImpl* publisher);
@@ -29,6 +28,8 @@ class ServicePublisherImpl final : public ServicePublisher,
virtual void ResumePublisher() = 0;
protected:
+ virtual ~Delegate();
+
void SetState(State state) { publisher_->SetState(state); }
ServicePublisherImpl* publisher_ = nullptr;