Commit 8fa2e4f
STYLE: Declare Ellipsoid SpatialFunction orientations as a fixed matrix
Declared the private (internal) EllipsoidInteriorExteriorSpatialFunction data
member `m_Orientations` as a `vnl_matrix_fixed`, instead of a raw pointer to
dynamically allocated memory.
Defaulted the `EllipsoidInteriorExteriorSpatialFunction` destructor, as it now
no longer needs to `delete` internal data pointers anymore.
Following C++ Core Guidelines, April 10, 2022, "Prefer scoped objects, don’t
heap-allocate unnecessarily",
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#r5-prefer-scoped-objects-dont-heap-allocate-unnecessarily1 parent d7bb212 commit 8fa2e4f
2 files changed
Lines changed: 8 additions & 50 deletions
File tree
- Modules/Core/Common/include
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
Lines changed: 6 additions & 48 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 32 | | |
49 | 33 | | |
50 | 34 | | |
| |||
84 | 68 | | |
85 | 69 | | |
86 | 70 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | 71 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 72 | + | |
112 | 73 | | |
113 | 74 | | |
114 | 75 | | |
| |||
121 | 82 | | |
122 | 83 | | |
123 | 84 | | |
124 | | - | |
| 85 | + | |
| 86 | + | |
125 | 87 | | |
126 | | - | |
127 | | - | |
| 88 | + | |
128 | 89 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 90 | + | |
134 | 91 | | |
| 92 | + | |
135 | 93 | | |
136 | 94 | | |
137 | 95 | | |
| |||
0 commit comments