diff options
author | Jay Berkenbilt <ejb@ql.org> | 2009-09-26 20:36:04 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2009-09-26 20:36:04 +0200 |
commit | f3d7c26de1f575a14017a161ad1fdd2b93385e03 (patch) | |
tree | 065d6b0e12534a7371974bfb17e77c91d7b217d6 /libqpdf/QPDF_optimization.cc | |
parent | 64546cfa0ddc2cf4c91e0865e979947c6b20ca46 (diff) | |
download | qpdf-f3d7c26de1f575a14017a161ad1fdd2b93385e03.tar.zst |
removed qexc; non-compatible ABI change
git-svn-id: svn+q:///qpdf/trunk@709 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'libqpdf/QPDF_optimization.cc')
-rw-r--r-- | libqpdf/QPDF_optimization.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libqpdf/QPDF_optimization.cc b/libqpdf/QPDF_optimization.cc index edd9bba9..7a45d43e 100644 --- a/libqpdf/QPDF_optimization.cc +++ b/libqpdf/QPDF_optimization.cc @@ -78,8 +78,9 @@ QPDF::flattenScalarReferences() { if (node.isScalar()) { - throw QEXC::Internal( - "flattenScalarReferences landed at indirect scalar"); + throw std::logic_error( + "INTERNAL ERROR:" + " flattenScalarReferences landed at indirect scalar"); } ObjGen og(node.getObjectID(), node.getGeneration()); if (visited.count(og) > 0) @@ -124,7 +125,8 @@ QPDF::flattenScalarReferences() { // QPDF_Dictionary.getKeys() never returns null // keys. - throw QEXC::Internal("dictionary with null key found"); + throw std::logic_error( + "INTERNAL ERROR: dictionary with null key found"); } else if (oh.isScalar()) { |