diff options
Diffstat (limited to 'libqpdf/Pl_Buffer.cc')
-rw-r--r-- | libqpdf/Pl_Buffer.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libqpdf/Pl_Buffer.cc b/libqpdf/Pl_Buffer.cc index 25aff218..cdbad568 100644 --- a/libqpdf/Pl_Buffer.cc +++ b/libqpdf/Pl_Buffer.cc @@ -1,6 +1,5 @@ - #include <qpdf/Pl_Buffer.hh> -#include <qpdf/QEXC.hh> +#include <stdexcept> #include <assert.h> #include <string.h> @@ -50,7 +49,7 @@ Pl_Buffer::getBuffer() { if (! this->ready) { - throw QEXC::Internal("Pl_Buffer::getBuffer() called when not ready"); + throw std::logic_error("Pl_Buffer::getBuffer() called when not ready"); } Buffer* b = new Buffer(this->total_size); |