From a3eba6e939a130d182128a08e98689f7726a6b7a Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 24 Jul 2025 10:12:57 +0200 Subject: [PATCH] test-luawrapper: Appease the clang-tidy gods Signed-off-by: Remi Gacogne --- pdns/test-luawrapper.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pdns/test-luawrapper.cc b/pdns/test-luawrapper.cc index c4d2e3492..cd61d89ca 100644 --- a/pdns/test-luawrapper.cc +++ b/pdns/test-luawrapper.cc @@ -41,8 +41,8 @@ BOOST_AUTO_TEST_SUITE(test_luawrapper) BOOST_AUTO_TEST_CASE(test_boost_optional) { LuaContext context; - context.writeFunction("testOptional", [](boost::optional in) -> boost::optional { - return in; + context.writeFunction("testOptional", [](boost::optional incoming) -> boost::optional { + return incoming; }); BOOST_REQUIRE(!context.executeCode>("return testOptional(nil)")); @@ -57,8 +57,8 @@ BOOST_AUTO_TEST_CASE(test_boost_optional) BOOST_AUTO_TEST_CASE(test_std_optional) { LuaContext context; - context.writeFunction("testOptional", [](std::optional in) -> std::optional { - return in; + context.writeFunction("testOptional", [](std::optional incoming) -> std::optional { + return incoming; }); BOOST_REQUIRE(!context.executeCode>("return testOptional(nil)")); -- 2.47.2