mark parameters/variables as const where appropriate

This commit is contained in:
Arne Morten Kvarving
2025-01-22 17:41:25 +01:00
parent 918b6cc594
commit c114def851
30 changed files with 62 additions and 62 deletions

View File

@@ -509,8 +509,8 @@ private:
if (!onUpperBoundary_(pos))
return false;
Scalar xInject[] = { 0.25, 0.75 };
Scalar injectLen[] = { 0.1, 0.1 };
const Scalar xInject[] = { 0.25, 0.75 };
const Scalar injectLen[] = { 0.1, 0.1 };
for (unsigned i = 0; i < sizeof(xInject) / sizeof(Scalar); ++i) {
if (xInject[i] - injectLen[i] / 2 < lambda
&& lambda < xInject[i] + injectLen[i] / 2)