]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix typos in annotations: 1524912 COPY_INSTEAD_OF_MOVE and 1524842 COPY_INSTEAD_OF_MOVE 13706/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 12 Jan 2024 10:27:57 +0000 (11:27 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 15 Jan 2024 10:19:57 +0000 (11:19 +0100)
ext/yahttp/yahttp/router.hpp
pdns/recursordist/rec-main.cc

index be52f831b02059272b071f4d1eec0b2b9671d632..3cb13ed98680a19f23b2a98b54d253848f03886c 100644 (file)
@@ -59,7 +59,7 @@ is consumed but not stored. Note that only path is matched, scheme, host and url
 /*! Map an URL.
 If method is left empty, it will match any method. Name is also optional, but needed if you want to find it for making URLs
 */
-    static void Map(const std::string& method, const std::string& url, THandlerFunction handler, const std::string& name = "") { router.map(method, std::move(url), handler, name); };
+    static void Map(const std::string& method, const std::string& url, THandlerFunction handler, const std::string& name = "") { router.map(method, url, std::move(handler), name); };
     static void Get(const std::string& url, THandlerFunction handler, const std::string& name = "") { router.map("GET", url, std::move(handler), name); }; //<! Helper for mapping GET
     static void Post(const std::string& url, THandlerFunction handler, const std::string& name = "") { router.map("POST", url, std::move(handler), name); }; //<! Helper for mapping POST
     static void Put(const std::string& url, THandlerFunction handler, const std::string& name = "") { router.map("PUT", url, std::move(handler), name); }; //<! Helper for mapping PUT
index 173abc3ff232c5e4d5532c574b28270ac8698468..a435f3a0d37a8f61e30382c8283be9ef26397f84 100644 (file)
@@ -1348,13 +1348,13 @@ void parseACLs()
   }
 
   g_initialAllowFrom = allowFrom;
-  // coverity[copy_contructor_call] maybe this can be avoided, but be careful as pointers get passed to other threads
+  // coverity[copy_constructor_call] maybe this can be avoided, but be careful as pointers get passed to other threads
   broadcastFunction([=] { return pleaseSupplantAllowFrom(allowFrom); });
 
   auto allowNotifyFrom = parseACL("allow-notify-from-file", "allow-notify-from", log);
 
   g_initialAllowNotifyFrom = allowNotifyFrom;
-  // coverity[copy_contructor_call] maybe this can be avoided, but be careful as pointers get passed to other threads
+  // coverity[copy_constructor_call] maybe this can be avoided, but be careful as pointers get passed to other threads
   broadcastFunction([=] { return pleaseSupplantAllowNotifyFrom(allowNotifyFrom); });
 
   l_initialized = true;