]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Removed ServerOptions "partial copy" copy constructor.
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 11 Apr 2016 16:34:29 +0000 (10:34 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 11 Apr 2016 16:34:29 +0000 (10:34 -0600)
AFAICT, the default copy constructor should work and the removed
explicit constructor was not copying the staticContext member, for no
documented reason (that I could find). It was also unused [in my tests].

If the partial copy constructor was abused for something useful, then a
different approach should be found -- the one that does not violate the
standard copy constructor post-conditions.

src/security/ServerOptions.cc
src/security/ServerOptions.h

index 8c6675b26c191bfb2d85911537990d15756f310b..34450af8ea5201449d54a064608cec8f320ceccd 100644 (file)
 #include <openssl/x509.h>
 #endif
 
-Security::ServerOptions::ServerOptions(const Security::ServerOptions &s) :
-    dh(s.dh),
-    dhParamsFile(s.dhParamsFile),
-    eecdhCurve(s.eecdhCurve),
-    parsedDhParams(s.parsedDhParams)
-{
-}
-
 void
 Security::ServerOptions::parse(const char *token)
 {
index 692ad79ed584836199d87f47dd390704e2bb0ebc..ced552387c825f9d6ce865f9550cf26bc2630386 100644 (file)
@@ -23,7 +23,6 @@ public:
         // is more secure to have only a small set of trusted CA.
         flags.tlsDefaultCa.defaultTo(false);
     }
-    explicit ServerOptions(const Security::ServerOptions &);
     virtual ~ServerOptions() = default;
 
     /* Security::PeerOptions API */