aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/MD5.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2018-08-13 03:57:52 +0200
committerJay Berkenbilt <ejb@ql.org>2018-08-13 03:57:52 +0200
commita2f62935b35aebe68a5a2f7e729ae4bb8734cfc7 (patch)
tree9bcb9a5e4c8b116ffa81e3b942a0ee472ab6b3c6 /libqpdf/MD5.cc
parent3d6615b2764da759c5b9354c40cd1a32b84ee039 (diff)
downloadqpdf-a2f62935b35aebe68a5a2f7e729ae4bb8734cfc7.tar.zst
Catch exceptions as const references (fixes #236)
This fix allows qpdf to compile/test cleanly with gcc 8.
Diffstat (limited to 'libqpdf/MD5.cc')
-rw-r--r--libqpdf/MD5.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/MD5.cc b/libqpdf/MD5.cc
index 0504e2d4..275567da 100644
--- a/libqpdf/MD5.cc
+++ b/libqpdf/MD5.cc
@@ -421,7 +421,7 @@ MD5::checkFileChecksum(char const* const checksum,
std::string actual_checksum = getFileChecksum(filename, up_to_size);
result = (checksum == actual_checksum);
}
- catch (std::runtime_error)
+ catch (std::runtime_error const&)
{
// Ignore -- return false
}