Cleanup: various non functional changes

- Use const arguments.
- Quiet unused assignment warnings.
- Use explicit cast to suppress CPPCHECK's truncLongCastReturn warning.
This commit is contained in:
Campbell Barton
2024-09-23 11:00:51 +10:00
parent a74ad65e8e
commit 7feccafbb0
8 changed files with 16 additions and 11 deletions

View File

@@ -79,7 +79,7 @@ class DualConInputReader : public ModelReader {
Triangle *t = new Triangle();
unsigned int *tr = GET_TRI(input_mesh, curtri);
const unsigned int *tr = GET_TRI(input_mesh, curtri);
veccopy(t->vt[0], GET_CO(input_mesh, GET_LOOP(input_mesh, tr[0])));
veccopy(t->vt[1], GET_CO(input_mesh, GET_LOOP(input_mesh, tr[1])));
veccopy(t->vt[2], GET_CO(input_mesh, GET_LOOP(input_mesh, tr[2])));
@@ -104,7 +104,7 @@ class DualConInputReader : public ModelReader {
return 0;
}
unsigned int *tr = GET_TRI(input_mesh, curtri);
const unsigned int *tr = GET_TRI(input_mesh, curtri);
t[0] = tr[0];
t[1] = tr[1];
t[2] = tr[2];