From: Otto Moerbeek Date: Fri, 21 Jun 2024 07:46:33 +0000 (+0200) Subject: Use const ref for string arg X-Git-Tag: rec-5.2.0-alpha0~7^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14318%2Fhead;p=thirdparty%2Fpdns.git Use const ref for string arg Co-authored-by: Remi Gacogne --- diff --git a/pdns/recursordist/lwres.cc b/pdns/recursordist/lwres.cc index 7cc83ec6e7..04e29920d1 100644 --- a/pdns/recursordist/lwres.cc +++ b/pdns/recursordist/lwres.cc @@ -214,7 +214,7 @@ static void logOutgoingQuery(const std::shared_ptr>>& outgoingLoggers, const boost::optional& initialRequestId, const boost::uuids::uuid& uuid, const ComboAddress& address, const DNSName& domain, int type, uint16_t qid, bool doTCP, bool tls, const boost::optional& srcmask, size_t bytes, int rcode, const std::vector& records, const struct timeval& queryTime, const std::set& exportTypes, const std::string nsName) +static void logIncomingResponse(const std::shared_ptr>>& outgoingLoggers, const boost::optional& initialRequestId, const boost::uuids::uuid& uuid, const ComboAddress& address, const DNSName& domain, int type, uint16_t qid, bool doTCP, bool tls, const boost::optional& srcmask, size_t bytes, int rcode, const std::vector& records, const struct timeval& queryTime, const std::set& exportTypes, const std::string& nsName) { if (!outgoingLoggers) { return;