summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-09-07 02:17:04 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-12-17 15:36:04 +0000
commitecb69f49641b7eaff12e9d32deb58064b56ef6f9 (patch)
tree2c4fa5b98275130b2d234e1a8b11cd180eb85a57
parentUpdate to C++20 for constexpr virtual destructors required for new Slicer (diff)
downloadicespider-ecb69f49641b7eaff12e9d32deb58064b56ef6f9.tar.bz2
icespider-ecb69f49641b7eaff12e9d32deb58064b56ef6f9.tar.xz
icespider-ecb69f49641b7eaff12e9d32deb58064b56ef6f9.zip
Add missing virtual destructor
-rw-r--r--Jamroot.jam1
-rw-r--r--icespider/core/ihttpRequest.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/Jamroot.jam b/Jamroot.jam
index aa89be7..a63ba0c 100644
--- a/Jamroot.jam
+++ b/Jamroot.jam
@@ -17,6 +17,7 @@ project
<variant>release:<lto>on
<variant>debug:<warnings>extra
<variant>debug:<warnings-as-errors>on
+ <variant>debug:<cflags>-Wnon-virtual-dtor
<variant>debug:<cflags>-Wcast-align
<variant>debug:<cflags>-Wunused
<variant>debug:<cflags>-Wnull-dereference
diff --git a/icespider/core/ihttpRequest.h b/icespider/core/ihttpRequest.h
index a54eae3..f88d81f 100644
--- a/icespider/core/ihttpRequest.h
+++ b/icespider/core/ihttpRequest.h
@@ -27,6 +27,7 @@ namespace IceSpider {
class DLL_PUBLIC IHttpRequest {
public:
explicit IHttpRequest(const Core *);
+ virtual ~IHttpRequest() = default;
[[nodiscard]] Ice::Context getContext() const;
[[nodiscard]] virtual const PathElements & getRequestPath() const = 0;