Commit c18ee440a38c7078e92c917bbe8fe1ad290a292d

Authored by Jay Berkenbilt
1 parent c2030d1f

mingw workaround for QPDFExc destructor

mingw doesn't like it when you don't inline empty virtual destructors.
include/qpdf/QPDFExc.hh
... ... @@ -39,7 +39,9 @@ class QPDFExc: public std::runtime_error
39 39 qpdf_offset_t offset,
40 40 std::string const& message);
41 41 QPDF_DLL
42   - virtual ~QPDFExc() throw ();
  42 + virtual ~QPDFExc() throw ()
  43 + {
  44 + }
43 45  
44 46 // To get a complete error string, call what(), provided by
45 47 // std::exception. The accessors below return the original values
... ...
libqpdf/QPDFExc.cc
... ... @@ -15,10 +15,6 @@ QPDFExc::QPDFExc(qpdf_error_code_e error_code,
15 15 {
16 16 }
17 17  
18   -QPDFExc::~QPDFExc() throw ()
19   -{
20   -}
21   -
22 18 std::string
23 19 QPDFExc::createWhat(std::string const& filename,
24 20 std::string const& object,
... ...