From: Pavel Odintsov Date: Fri, 31 Aug 2018 11:13:16 +0000 (+0100) Subject: Replaced function arguments to constant references to avoid copying memory X-Git-Tag: dnsdist-1.3.3~128^2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=454e8c98b46e872bd6c3b2738602c3a70c7acff6;p=pdns Replaced function arguments to constant references to avoid copying memory --- 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; }