Skip to content

Commit

Permalink
Make Client polymorphic by adding a virtual destructor
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 675145888
Change-Id: Iad1821642e73db27c522baf4efe64dad78acbf7d
  • Loading branch information
Sandboxed API Team authored and copybara-github committed Sep 16, 2024
1 parent 50d21e2 commit 4dab011
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sandboxed_api/sandbox2/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class Client {
static constexpr uint32_t kSandbox2ClientUnotify = 0x0A0B0C03;

explicit Client(Comms* comms);
virtual ~Client() = default;

Client(const Client&) = delete;
Client& operator=(const Client&) = delete;
Expand Down

0 comments on commit 4dab011

Please sign in to comment.