]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Drop ref from string_view arg 11863/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 30 Nov 2022 14:12:28 +0000 (15:12 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 30 Nov 2022 14:12:28 +0000 (15:12 +0100)
pdns/dnsname.cc
pdns/dnsname.hh

index dd3c1ccef51e42b1252a11e67fdf3630e8a33589..3bfbf3007fbd4dc4f037ab557c17e9fe4e41020c 100644 (file)
@@ -53,7 +53,7 @@ void DNSName::throwSafeRangeError(const std::string& msg, const char* buf, size_
   throw std::range_error(msg + label + dots);
 }
 
-DNSName::DNSName(const std::string_view& sw)
+DNSName::DNSName(const std::string_view sw)
 {
   const char* p = sw.data();
   size_t length = sw.length();
index 18b1e271597367ac9174298cf9ebd20a0cf34c82..29c8325c5d602bbf17b0151f2c9b7c1f63a210a1 100644 (file)
@@ -99,7 +99,7 @@ public:
   DNSName(const DNSName& a) = default;
   DNSName(DNSName&& a) = default;
 
-  explicit DNSName(const std::string_view& sw); //!< Constructs from a human formatted, escaped presentation
+  explicit DNSName(std::string_view sw); //!< Constructs from a human formatted, escaped presentation
   DNSName(const char* p, int len, int offset, bool uncompress, uint16_t* qtype=nullptr, uint16_t* qclass=nullptr, unsigned int* consumed=nullptr, uint16_t minOffset=0); //!< Construct from a DNS Packet, taking the first question if offset=12. If supplied, consumed is set to the number of bytes consumed from the packet, which will not be equal to the wire length of the resulting name in case of compression.
 
   bool isPartOf(const DNSName& rhs) const;   //!< Are we part of the rhs name? Note that name.isPartOf(name).