We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a3b067 commit 93460ceCopy full SHA for 93460ce
OpenSim/Simulation/Wrap/WrapResult.cpp
@@ -49,19 +49,10 @@ void WrapResult::copyData(const WrapResult& aWrapResult) {
49
startPoint = aWrapResult.startPoint;
50
endPoint = aWrapResult.endPoint;
51
52
- // Avoid uninitialized warnings on GCC 12+
53
- r1 = SimTK::Vec3(0.0);
54
- r2 = SimTK::Vec3(0.0);
55
- c1 = SimTK::Vec3(0.0);
56
- sv = SimTK::Vec3(0.0);
57
-
58
- int i;
59
- for (i = 0; i < 3; i++) {
60
- r1[i] = aWrapResult.r1[i];
61
- r2[i] = aWrapResult.r2[i];
62
- c1[i] = aWrapResult.c1[i];
63
- sv[i] = aWrapResult.sv[i];
64
- }
+ r1 = aWrapResult.r1;
+ r2 = aWrapResult.r2;
+ c1 = aWrapResult.c1;
+ sv = aWrapResult.sv;
65
66
singleWrap = aWrapResult.singleWrap;
67
// TODO: Should factor be omitted from the copy?
0 commit comments