Skip to content

Commit a428f57

Browse files
committed
Automatic clang-tidy fixes.
1 parent f06f092 commit a428f57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_class_sh_shared_ptr_copy_move.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ struct Foo {
1616
std::string history;
1717
Foo(const std::string &history_) : history(history_) {}
1818
Foo(const Foo &other) : history(other.history + "_CpCtor") {}
19-
Foo(Foo &&other) : history(other.history + "_MvCtor") {}
19+
Foo(Foo &&other) noexcept : history(other.history + "_MvCtor") {}
2020
Foo &operator=(const Foo &other) {
2121
history = other.history + "_OpEqLv";
2222
return *this;
2323
}
24-
Foo &operator=(Foo &&other) {
24+
Foo &operator=(Foo &&other) noexcept {
2525
history = other.history + "_OpEqRv";
2626
return *this;
2727
}

0 commit comments

Comments
 (0)