]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Removed an unnecessary explicit copy constructor
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Tue, 17 Aug 2021 17:26:36 +0000 (20:26 +0300)
committerEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Tue, 17 Aug 2021 17:26:36 +0000 (20:26 +0300)
since the default-generated Eui64 constructor performs the required
member-wise copy itself. This should fix a compiler error
with the [-Werror=deprecated-copy] compiler option.

src/eui/Eui48.h

index e0be32d34fd2b78c0f6a6471672e52982f3509a5..b0df46f30f1e4a766a02e18370f029c37153e99f 100644 (file)
@@ -29,7 +29,6 @@ class Eui48
 
 public:
     Eui48() { clear(); }
-    Eui48(const Eui48 &t) { memcpy(this, &t, sizeof(Eui48)); }
     bool operator== (const Eui48 &t) const { return memcmp(eui, t.eui, SZ_EUI48_BUF) == 0; }
     bool operator< (const Eui48 &t) const { return memcmp(eui, t.eui, SZ_EUI48_BUF) < 0; }
     ~Eui48() {}