From bc282425088455198a7a99511c75914477d4ed32 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 23:14:51 +0200 Subject: Merging upstream version 1.9.3. Signed-off-by: Daniel Baumann --- statnode.hh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'statnode.hh') diff --git a/statnode.hh b/statnode.hh index 4f95905..18c17c2 100644 --- a/statnode.hh +++ b/statnode.hh @@ -30,10 +30,7 @@ public: struct Stat { - Stat() - { - } - + Stat() {}; uint64_t queries{0}; uint64_t noerrors{0}; uint64_t nxdomains{0}; @@ -68,9 +65,9 @@ public: std::string fullname; uint8_t labelsCount{0}; - void submit(const DNSName& domain, int rcode, unsigned int bytes, bool hit, boost::optional remote); + void submit(const DNSName& domain, int rcode, unsigned int bytes, bool hit, const boost::optional& remote); Stat print(unsigned int depth=0, Stat newstat=Stat(), bool silent=false) const; - void visit(visitor_t visitor, Stat& newstat, unsigned int depth=0) const; + void visit(const visitor_t& visitor, Stat& newstat, unsigned int depth = 0) const; bool empty() const { return children.empty() && s.remotes.empty(); @@ -78,5 +75,5 @@ public: children_t children; private: - void submit(std::vector::const_iterator end, std::vector::const_iterator begin, const std::string& domain, int rcode, unsigned int bytes, boost::optional remote, unsigned int count, bool hit); + void submit(std::vector::const_iterator end, std::vector::const_iterator begin, const std::string& domain, int rcode, unsigned int bytes, const boost::optional& remote, unsigned int count, bool hit); }; -- cgit v1.2.3