Fix performance-noexcept-move-constructor clang-tidy warning (#6933)

This commit is contained in:
Siarhei Fedartsou
2024-06-08 08:33:54 +02:00
committed by GitHub
parent c57b0d28b0
commit 8fd8d0c24a
6 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ struct header
// explicitly use default copy c'tor as adding move c'tor
header &operator=(const header &other) = default;
header(std::string name, std::string value) : name(std::move(name)), value(std::move(value)) {}
header(header &&other) : name(std::move(other.name)), value(std::move(other.value)) {}
header(header &&other) noexcept : name(std::move(other.name)), value(std::move(other.value)) {}
void clear()
{