From c18ee440a38c7078e92c917bbe8fe1ad290a292d Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 19 Jan 2019 09:43:19 -0500 Subject: [PATCH] mingw workaround for QPDFExc destructor mingw doesn't like it when you don't inline empty virtual destructors. --- include/qpdf/QPDFExc.hh | 4 +++- libqpdf/QPDFExc.cc | 4 ---- 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,