Skip to content

Commit

Permalink
fix: LookupCallback has virtual destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed Jan 19, 2024
1 parent 70a9347 commit c5dc7ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/Lib/Lookup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class SymbolLookup

struct LookupCallback
{
virtual ~LookupCallback() = default;
virtual bool operator()(const Info&) = 0;
};

Expand Down Expand Up @@ -139,6 +140,8 @@ makeHandler(Fn& fn)
Fn& fn_;

public:
~LookupCallbackImpl() override = default;

LookupCallbackImpl(Fn& fn)
: fn_(fn)
{
Expand Down

0 comments on commit c5dc7ae

Please sign in to comment.