Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b8145b4 authored by Myles Watson's avatar Myles Watson
Browse files

GD: Make destructors virtual not override

Bug: 175422340
Test: cert/run --host
Tag: #gd-refactor
Change-Id: I654988a00dbeeab9021386e48f3f21b4a5388f80
parent 56f6cc3d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ class HciHalFacadeService : public HciHalFacade::Service, public ::bluetooth::ha
    hal->registerIncomingPacketCallback(this);
  }

  ~HciHalFacadeService() override {
  ~HciHalFacadeService() {
    hal_->unregisterIncomingPacketCallback();
  }

+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ class AclManager : public Module {
  // "struct impl" is forwarded declared in .cc and compiler needs a concrete definition of "struct impl" when
  // compiling AclManager's destructor. Hence we need to forward declare the destructor for AclManager to delay
  // compiling AclManager's destructor until it starts linking the .cc file.
  ~AclManager() override;
  ~AclManager();

  // Should register only once when user module starts.
  // Generates OnConnectSuccess when an incoming connection is established.
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ class AclConnectionTracker : public ConnectionManagementCallbacks {
 public:
  AclConnectionTracker(AclConnectionInterface* acl_connection_interface)
      : acl_connection_interface_(acl_connection_interface) {}
  ~AclConnectionTracker() override {
  ~AclConnectionTracker() {
    // If callbacks were registered, they should have been delivered.
    ASSERT(client_callbacks_ == nullptr || queued_callbacks_.empty());
  }
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ class ClassicAclConnection : public AclConnection {
  ClassicAclConnection();
  ClassicAclConnection(std::shared_ptr<Queue> queue, AclConnectionInterface* acl_connection_interface, uint16_t handle,
                       Address address);
  ~ClassicAclConnection() override;
  ~ClassicAclConnection();

  virtual Address GetAddress() const {
    return address_;
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ struct classic_impl : public security::ISecurityManagerListener {
        handler_->BindOn(this, &classic_impl::on_read_remote_version_information));
  }

  ~classic_impl() override {
  ~classic_impl() {
    for (auto event_code : AclConnectionEvents) {
      hci_layer_->UnregisterEventHandler(event_code);
    }
Loading