Catch-by-reference for tests/Clip_Tests

This commit is contained in:
FeRD (Frank Dana)
2019-07-03 06:28:57 -04:00
parent 1b19ae7fe4
commit 8158a1f2fa

View File

@@ -128,7 +128,7 @@ TEST(Clip_Properties)
CHECK_EQUAL(true, root["alpha"]["keyframe"].asBool());
}
catch (exception e)
catch (const std::exception& e)
{
// Error parsing JSON (or missing keys)
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)", "");
@@ -153,7 +153,7 @@ TEST(Clip_Properties)
CHECK_EQUAL(false, root["alpha"]["keyframe"].asBool());
}
catch (exception e)
catch (const std::exception& e)
{
// Error parsing JSON (or missing keys)
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)", "");
@@ -177,7 +177,7 @@ TEST(Clip_Properties)
CHECK_EQUAL(false, root["alpha"]["keyframe"].asBool());
}
catch (exception e)
catch (const std::exception& e)
{
// Error parsing JSON (or missing keys)
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)", "");
@@ -202,7 +202,7 @@ TEST(Clip_Properties)
CHECK_EQUAL(true, root["alpha"]["keyframe"].asBool());
}
catch (exception e)
catch (const std::exception& e)
{
// Error parsing JSON (or missing keys)
throw InvalidJSON("JSON is invalid (missing keys or invalid data types)", "");