From 454e8c98b46e872bd6c3b2738602c3a70c7acff6 Mon Sep 17 00:00:00 2001 From: Pavel Odintsov Date: Fri, 31 Aug 2018 12:13:16 +0100 Subject: [PATCH] Replaced function arguments to constant references to avoid copying memory --- pdns/dnsdist.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdist.hh b/pdns/dnsdist.hh index fc7e60613..2dd96462c 100644 --- a/pdns/dnsdist.hh +++ b/pdns/dnsdist.hh @@ -264,7 +264,7 @@ struct DNSDistStats // Keeps additional information about metrics struct MetricDefinition { - MetricDefinition(std::string description, std::string prometheusType) { + MetricDefinition(const std::string& description, const std::string& prometheusType) { this->description = description; this->prometheusType = prometheusType; } -- 2.40.0