Skip to content

Commit b5553ec

Browse files
Solver Core - make variables 'const'
This should have no impact on anything really.
1 parent eeb1357 commit b5553ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mmSolver/adjust/adjust_relationships.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ int countUpNumberOfErrors(
173173

174174
xit = weightMaxPerFrame.find(frameIndex);
175175
assert(xit != weightMaxPerFrame.end());
176-
double weight_max = xit->second;
176+
const double weight_max = xit->second;
177177

178178
weight = weight / weight_max;
179179
out_markerWeightList[i] = weight;
@@ -191,7 +191,7 @@ int countUpNumberOfErrors(
191191
// to be calculated.
192192
AttrPtr weightAttr = stiffAttrs->weightAttr;
193193
weightAttr->getValue(stiffValue, timeEvalMode);
194-
bool useStiffness = stiffValue > 0.0;
194+
const bool useStiffness = stiffValue > 0.0;
195195
if (useStiffness) {
196196
out_numberOfAttrStiffnessErrors++;
197197
}
@@ -207,7 +207,7 @@ int countUpNumberOfErrors(
207207
// to be calculated.
208208
AttrPtr weightAttr = smoothAttrs->weightAttr;
209209
weightAttr->getValue(smoothValue, timeEvalMode);
210-
bool useSmoothness = smoothValue > 0.0;
210+
const bool useSmoothness = smoothValue > 0.0;
211211
if (useSmoothness) {
212212
out_numberOfAttrSmoothnessErrors++;
213213
}

0 commit comments

Comments
 (0)