From: Remi Gacogne Date: Thu, 8 Feb 2024 14:23:25 +0000 (+0100) Subject: dnsdist: Delint the 'reloadCertificates' methods X-Git-Tag: dnsdist-1.9.0~6^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17e0863f53665a7bab40b58af0d473c1c02eea93;p=thirdparty%2Fpdns.git dnsdist: Delint the 'reloadCertificates' methods --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 6ea674a5f5..f2e0cd5aef 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -2869,7 +2869,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck) return g_doqlocals.size(); }); - luaCtx.registerFunction::*)()>("reloadCertificates", [](std::shared_ptr frontend) { + luaCtx.registerFunction::*)()>("reloadCertificates", [](const std::shared_ptr& frontend) { if (frontend != nullptr) { frontend->reloadCertificates(); } @@ -2950,7 +2950,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck) return g_doh3locals.size(); }); - luaCtx.registerFunction::*)()>("reloadCertificates", [](std::shared_ptr frontend) { + luaCtx.registerFunction::*)()>("reloadCertificates", [](const std::shared_ptr& frontend) { if (frontend != nullptr) { frontend->reloadCertificates(); } @@ -3022,7 +3022,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck) return g_dohlocals.size(); }); - luaCtx.registerFunction::*)()>("reloadCertificates", [](std::shared_ptr frontend) { + luaCtx.registerFunction::*)()>("reloadCertificates", [](const std::shared_ptr& frontend) { if (frontend != nullptr) { frontend->reloadCertificates(); } @@ -3280,7 +3280,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck) } }); - luaCtx.registerFunction::*)()>("reloadCertificates", [](std::shared_ptr& frontend) { + luaCtx.registerFunction::*)()>("reloadCertificates", [](const std::shared_ptr& frontend) { if (frontend == nullptr) { return; }