]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Reverted move-constructor-related changes
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 29 Dec 2014 16:32:29 +0000 (17:32 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 29 Dec 2014 16:32:29 +0000 (17:32 +0100)
helpers/basic_auth/MSNT/msntauth.cc

index 27d4b9a92d708ec7695b5d4d59b011b84dcc683b..848660932d9a1b10ad464e55aabeafa8a65e9619 100644 (file)
@@ -56,25 +56,6 @@ static char msntauth_version[] = "Msntauth v3.0.0 (C) 2 Sep 2001 Stellar-X Anton
 struct domaincontroller {
     std::string domain;
     std::string server;
-    domaincontroller(const std::string &d, const std::string & s) :
-        domain(d), server(s)
-    {}
-#if __cplusplus >= 201103L
-    // disable move constructor to work around centos-6 clang bug
-    // this is not a performance-critical functionality anyway
-    domaincontroller (const domaincontroller &d) :
-        domain(d.domain), server(d.server)
-    {}
-    domaincontroller (domaincontroller &&) = delete;
-    domaincontroller()
-    {}
-    domaincontroller& operator = (const domaincontroller &d)
-    {
-        domain=d.domain;
-        server=d.server;
-        return *this;
-    }
-#endif
 };
 typedef std::vector<domaincontroller> domaincontrollers_t;
 domaincontrollers_t domaincontrollers;
@@ -120,7 +101,9 @@ main(int argc, char **argv)
             std::cerr << "Error: can't understand domain controller specification '"
                       << arg << "'. Ignoring" << std::endl;
         }
-        domaincontroller dc(arg.substr(0,pos), arg.substr(pos+1));
+        domaincontroller dc;
+        dc.domain = arg.substr(0,pos);
+        dc.server = arg.substr(pos+1);
         if (dc.domain.length() == 0 || dc.server.length() == 0) {
             std::cerr << "Error: invalid domain specification in '" << arg <<
                       "'. Ignoring." << std::endl;