decoder/ffmpeg, test/test_protocol: catch exceptions by reference

Work around -Werror=catch-value.
This commit is contained in:
Max Kellermann
2017-11-12 18:52:11 +01:00
parent 18add29472
commit a2b77c8813
3 changed files with 3 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ ArgParserTest::TestRange()
try {
range = ParseCommandArgRange("-2");
CPPUNIT_ASSERT(false);
} catch (ProtocolError) {
} catch (const ProtocolError &) {
CPPUNIT_ASSERT(true);
}
}