mark parameters/variables as const where appropriate

This commit is contained in:
Arne Morten Kvarving committed 2025-01-23 07:57:44 +01:00
1 parent 918b6cc594
commit c114def851
30 files changed
+62 -62

No files matched your search

+2 -2
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)