]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
SNMP: Let the compiler elide copy instead of calling the move ctor 5204/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Sat, 25 Mar 2017 09:21:03 +0000 (10:21 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Sat, 25 Mar 2017 09:21:03 +0000 (10:21 +0100)
pdns/snmp-agent.hh

index 41fa9f802f302148294e15f99611abdf52b6f447..4e2afe24662f977571ee0ca2c364f49e5eb08784 100644 (file)
@@ -32,7 +32,7 @@ public:
   void run()
   {
 #ifdef HAVE_NET_SNMP
-  d_thread = std::move(std::thread(&SNMPAgent::worker, this));
+  d_thread = std::thread(&SNMPAgent::worker, this);
 #endif /* HAVE_NET_SNMP */
   }