aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-01-19 15:43:19 +0100
committerJay Berkenbilt <ejb@ql.org>2019-01-19 16:14:07 +0100
commitc18ee440a38c7078e92c917bbe8fe1ad290a292d (patch)
treea4b60f044c9cee0f6e6a1f26be6949c2007cd880
parentc2030d1f333b9403cfb15460c4b9ca9fcb446021 (diff)
downloadqpdf-c18ee440a38c7078e92c917bbe8fe1ad290a292d.tar.zst
mingw workaround for QPDFExc destructor
mingw doesn't like it when you don't inline empty virtual destructors.
-rw-r--r--include/qpdf/QPDFExc.hh4
-rw-r--r--libqpdf/QPDFExc.cc4
2 files changed, 3 insertions, 5 deletions
diff --git a/include/qpdf/QPDFExc.hh b/include/qpdf/QPDFExc.hh
index b97fca9d..fe0aa1d5 100644
--- a/include/qpdf/QPDFExc.hh
+++ b/include/qpdf/QPDFExc.hh
@@ -39,7 +39,9 @@ class QPDFExc: public std::runtime_error
qpdf_offset_t offset,
std::string const& message);
QPDF_DLL
- virtual ~QPDFExc() throw ();
+ virtual ~QPDFExc() throw ()
+ {
+ }
// To get a complete error string, call what(), provided by
// std::exception. The accessors below return the original values
diff --git a/libqpdf/QPDFExc.cc b/libqpdf/QPDFExc.cc
index b816e913..77de5bba 100644
--- a/libqpdf/QPDFExc.cc
+++ b/libqpdf/QPDFExc.cc
@@ -15,10 +15,6 @@ QPDFExc::QPDFExc(qpdf_error_code_e error_code,
{
}
-QPDFExc::~QPDFExc() throw ()
-{
-}
-
std::string
QPDFExc::createWhat(std::string const& filename,
std::string const& object,