Skip to content

Commit

Permalink
[native] Make sure all virtual classes in C++ code base have virtual …
Browse files Browse the repository at this point in the history
…destructor

Summary: https://linear.app/comm/issue/ENG-2329/make-sure-all-virtual-classes-in-c-code-base-have-virtual-destructor

Test Plan: Compile the app and make sure there are no more warnings related to missing virtual destructors

Reviewers: kamil, tomek

Reviewed By: kamil

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D13950
  • Loading branch information
graszka22 committed Nov 19, 2024
1 parent d3f8dfe commit 7a60852
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ class DatabaseQueryExecutor {
std::optional<std::string> messageIDCursor) const = 0;
virtual std::vector<MessageEntity> getRelatedMessagesForSearch(
const std::vector<std::string> &messageIDs) const = 0;
virtual ~DatabaseQueryExecutor() = default;

#ifdef EMSCRIPTEN
virtual std::vector<WebThread> getAllThreadsWeb() const = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ class MessageSpec {
public:
virtual std::unique_ptr<std::string>
messageContentForClientDB(const folly::dynamic &rawMessageInfo) = 0;
virtual ~MessageSpec() {
}
};
} // namespace comm
Binary file modified web/shared-worker/_generated/comm_query_executor.wasm
Binary file not shown.

0 comments on commit 7a60852

Please sign in to comment.