Skip to content

Commit 1a95095

Browse files
committed
C++: Add default move constructor. Also removed debug comment I forgot to remove earlier. Luckily, that meant that no line numbers changed in .expected files.
1 parent 5abab25 commit 1a95095

File tree

1 file changed

+2
-2
lines changed
  • cpp/ql/test/library-tests/dataflow/taint-tests

1 file changed

+2
-2
lines changed

cpp/ql/test/library-tests/dataflow/taint-tests/taint.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ namespace IntWrapper
498498
int data;
499499

500500
Class() = default;
501-
501+
Class(Class&&) = default;
502502
Class(const Class &that) : data(that.data) {}
503503

504504
Class &operator=(const Class &that)
@@ -526,7 +526,7 @@ namespace IntWrapper
526526
}
527527
} // namespace IntWrapper
528528

529-
// using std::swap;
529+
530530

531531
void test_copy_assignment_operator() {
532532
IntWrapper::Class x;

0 commit comments

Comments
 (0)