From: Remi Gacogne Date: Thu, 24 Jul 2025 08:12:57 +0000 (+0200) Subject: test-luawrapper: Appease the clang-tidy gods X-Git-Tag: auth-5.1.0-alpha0~16^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F15890%2Fhead;p=thirdparty%2Fpdns.git test-luawrapper: Appease the clang-tidy gods Signed-off-by: Remi Gacogne --- 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)"));