From cf4220570c2d1b7105fb29719383f64026d46837 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Fri, 27 Jan 2023 18:53:27 -0500 Subject: Add virtual non-inline functions for interface classes This fixes a cases where trying to dynamic_cast to one of these interfaces fails for types defined in libraries, since the linker just copies the full definition into the library because it can, and then breaks the inheritance tree. --- ui/preview.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/preview.h') diff --git a/ui/preview.h b/ui/preview.h index 84f40d79..9d89f1f8 100644 --- a/ui/preview.h +++ b/ui/preview.h @@ -17,7 +17,7 @@ class BINARYNINJAUIAPI PreviewScrollHandler { public: - virtual ~PreviewScrollHandler() {} + virtual ~PreviewScrollHandler(); virtual void sendWheelEvent(QWheelEvent* event) = 0; }; -- cgit v1.3.1