Commit 4daba1b
committed
BUG: Revert declare-then-init where it changes copy/move semantics
Fix three cases where merging declaration and assignment changed the
operation being tested:
- itkImageRegionConstIteratorWithOnlyIndexTest.cxx: index captured
before GoToBegin() read past-the-end position instead of begin
- itkRangeGTestUtilities.h: copy/move-assign tests now exercise
constructors instead of assignment operators
- itkImageIteratorTest.cxx: assignment operator test invoked copy
constructor instead
Found by Greptile code review (1 P1, 2 P2).1 parent 0456324 commit 4daba1b
3 files changed
Lines changed: 7 additions & 4 deletions
File tree
- Modules/Core/Common/test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | 125 | | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
108 | | - | |
| 109 | + | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
0 commit comments