Automatic clang-tidy fixes.

This commit is contained in:
Ralf W. Grosse-Kunstleve 2021-06-23 08:30:41 -07:00 committed by Ralf W. Grosse-Kunstleve
parent 48eb78ae77
commit 10abe15052
2 changed files with 3 additions and 3 deletions

View File

@ -171,7 +171,7 @@ struct SharedFromThisRef {
struct B : std::enable_shared_from_this<B> { struct B : std::enable_shared_from_this<B> {
B() { print_created(this); } B() { print_created(this); }
B(const B &) : std::enable_shared_from_this<B>() { print_copy_created(this); } B(const B &) : std::enable_shared_from_this<B>() { print_copy_created(this); }
B(B &&) : std::enable_shared_from_this<B>() { print_move_created(this); } B(B &&) noexcept : std::enable_shared_from_this<B>() { print_move_created(this); }
~B() { print_destroyed(this); } ~B() { print_destroyed(this); }
}; };

View File

@ -23,14 +23,14 @@ struct Sft : std::enable_shared_from_this<Sft> {
// worth the trouble covering all platforms. // worth the trouble covering all platforms.
Sft(const Sft &other) { history = other.history + "_CpCtor"; } Sft(const Sft &other) { history = other.history + "_CpCtor"; }
Sft(Sft &&other) { history = other.history + "_MvCtor"; } Sft(Sft &&other) noexcept { history = other.history + "_MvCtor"; }
Sft &operator=(const Sft &other) { Sft &operator=(const Sft &other) {
history = other.history + "_OpEqLv"; history = other.history + "_OpEqLv";
return *this; return *this;
} }
Sft &operator=(Sft &&other) { Sft &operator=(Sft &&other) noexcept {
history = other.history + "_OpEqRv"; history = other.history + "_OpEqRv";
return *this; return *this;
} }