mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 08:40:06 +02:00
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
From 87b6afa177096ffeea16eef401208c99dd6a2f9e Mon Sep 17 00:00:00 2001
|
|
From: David Tardon <dtardon@redhat.com>
|
|
Date: Thu Feb 01 16:48:35 2018 +0100
|
|
Subject: WaE: catching polymorphic type by value
|
|
|
|
|
|
diff --git a/src/lib/PMDParser.cpp b/src/lib/PMDParser.cpp
|
|
index 481f6bf..d5378f2 100644
|
|
--- a/src/lib/PMDParser.cpp
|
|
+++ b/src/lib/PMDParser.cpp
|
|
@@ -852,7 +852,7 @@ void PMDParser::parseHeader(uint32_t *tocOffset, uint16_t *tocLength)
|
|
*tocLength = readU16(m_input, m_bigEndian);
|
|
PMD_DEBUG_MSG(("[Header] TOC length is %d\n", *tocLength));
|
|
}
|
|
- catch (PMDStreamException)
|
|
+ catch (const PMDStreamException &)
|
|
{
|
|
throw PMDParseException("Can't find the table of contents length in the header.");
|
|
}
|
|
@@ -862,7 +862,7 @@ void PMDParser::parseHeader(uint32_t *tocOffset, uint16_t *tocLength)
|
|
*tocOffset = readU32(m_input, m_bigEndian);
|
|
PMD_DEBUG_MSG(("[Header] TOC offset is 0x%x\n", *tocOffset));
|
|
}
|
|
- catch (PMDStreamException)
|
|
+ catch (const PMDStreamException &)
|
|
{
|
|
throw PMDParseException("Can't find the table of contents offset in the header.");
|
|
}
|
|
--
|
|
2.23.0
|
|
|