From 833de50dee37e37cce40f95fbeb55b05eff7274e Mon Sep 17 00:00:00 2001 From: FranckRJ Date: Sat, 27 Apr 2024 16:06:50 +0200 Subject: [PATCH] Fixed warning about missing virtual destructor in tests. --- tests/referece_types_tests.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/referece_types_tests.cpp b/tests/referece_types_tests.cpp index c0d540c6..48ef2373 100644 --- a/tests/referece_types_tests.cpp +++ b/tests/referece_types_tests.cpp @@ -18,6 +18,8 @@ struct ReferenceTypesTests: tpunit::TestFixture { class AbstractType { public: + virtual ~AbstractType() = default; + virtual const std::string& getContent() = 0; // Return true if object was sliced, false otherwise.