From 2a37f25d1b3dbce450efaffde04b8f980e9d6063 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de> Date: Wed, 10 Nov 2021 15:49:28 +0100 Subject: [PATCH] simplify test, get rid of warning (discard vs nodiscard) --- Tests/Unit/Device/BeamFootprintTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Unit/Device/BeamFootprintTest.cpp b/Tests/Unit/Device/BeamFootprintTest.cpp index a4949a3dfc0..fb09ee5f077 100644 --- a/Tests/Unit/Device/BeamFootprintTest.cpp +++ b/Tests/Unit/Device/BeamFootprintTest.cpp @@ -12,8 +12,8 @@ class BeamFootprintTest : public ::testing::Test { TEST_F(BeamFootprintTest, ErroneousArguments) { - EXPECT_THROW(std::make_unique<FootprintGauss>(-1.0), std::runtime_error); - EXPECT_THROW(std::make_unique<FootprintSquare>(-1.0), std::runtime_error); + EXPECT_THROW(FootprintGauss(-1.0), std::runtime_error); + EXPECT_THROW(FootprintSquare(-1.0), std::runtime_error); FootprintGauss gaussian_ff(std::numeric_limits<double>::infinity()); EXPECT_EQ(0.0, gaussian_ff.calculate(-90.0 * Units::deg)); -- GitLab