113.0-1
[arch-packages.git] / libpagemaker / trunk / libpagemaker-0.0.4-const-ref-exception.patch
blob4e6598f6de9b510febd035161a50d35a8892b943
1 diff -rauN libpagemaker-0.0.4/src/lib/PMDParser.cpp libpagemaker-0.0.4-const-ref-exception-patch/src/lib/PMDParser.cpp
2 --- libpagemaker-0.0.4/src/lib/PMDParser.cpp 2018-01-08 13:27:29.000000000 +0100
3 +++ libpagemaker-0.0.4-const-ref-exception-patch/src/lib/PMDParser.cpp 2019-12-10 20:32:26.167629754 +0100
4 @@ -852,7 +852,7 @@
5 *tocLength = readU16(m_input, m_bigEndian);
6 PMD_DEBUG_MSG(("[Header] TOC length is %d\n", *tocLength));
8 - catch (PMDStreamException)
9 + catch (const PMDStreamException&)
11 throw PMDParseException("Can't find the table of contents length in the header.");
13 @@ -862,7 +862,7 @@
14 *tocOffset = readU32(m_input, m_bigEndian);
15 PMD_DEBUG_MSG(("[Header] TOC offset is 0x%x\n", *tocOffset));
17 - catch (PMDStreamException)
18 + catch (const PMDStreamException&)
20 throw PMDParseException("Can't find the table of contents offset in the header.");