diff options
Diffstat (limited to 'test/style/style_layer.test.cpp')
-rw-r--r-- | test/style/style_layer.test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/style/style_layer.test.cpp b/test/style/style_layer.test.cpp index 624ed088c3..61516a2de9 100644 --- a/test/style/style_layer.test.cpp +++ b/test/style/style_layer.test.cpp @@ -285,7 +285,7 @@ TEST(Layer, DuplicateLayer) { try { style.addLayer(std::make_unique<LineLayer>("line", "unusedsource")); FAIL() << "Should not have been allowed to add a duplicate layer id"; - } catch (const std::runtime_error e) { + } catch (const std::runtime_error& e) { // Expected ASSERT_STREQ("Layer line already exists", e.what()); } |