From a428f5755d0d8937d38aa3fe1c8ec4250e7288a8 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 24 Jun 2021 12:53:09 -0700 Subject: [PATCH] Automatic clang-tidy fixes. --- tests/test_class_sh_shared_ptr_copy_move.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_class_sh_shared_ptr_copy_move.cpp b/tests/test_class_sh_shared_ptr_copy_move.cpp index 69172efbf..823cbc4bf 100644 --- a/tests/test_class_sh_shared_ptr_copy_move.cpp +++ b/tests/test_class_sh_shared_ptr_copy_move.cpp @@ -16,12 +16,12 @@ struct Foo { std::string history; Foo(const std::string &history_) : history(history_) {} Foo(const Foo &other) : history(other.history + "_CpCtor") {} - Foo(Foo &&other) : history(other.history + "_MvCtor") {} + Foo(Foo &&other) noexcept : history(other.history + "_MvCtor") {} Foo &operator=(const Foo &other) { history = other.history + "_OpEqLv"; return *this; } - Foo &operator=(Foo &&other) { + Foo &operator=(Foo &&other) noexcept { history = other.history + "_OpEqRv"; return *this; }