diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2022-01-06 13:37:51 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2022-01-06 13:41:03 +0300 |
commit | ed3fecae8e5f6f542fcfe0d58e7275283c982b3a (patch) | |
tree | c710705b011d3af4bffe7d6f5e9f744bb1247c2b /source/blender/io/alembic/intern/abc_reader_mesh.h | |
parent | f9aa6376f1a2b13ab12a77197257e9145f029792 (diff) |
Cleanup: USD/ABC, remove `const` from pass-by-value params
Remove `const` from pass-by-value parameters in function declarations.
The variables passed as parameters can never be modified by the function
anyway, so declaring them as `const` is meaningless. Having the
declaration there could confuse, especially as it suggests it does have
a meaning, training people to write meaningless code.
Diffstat (limited to 'source/blender/io/alembic/intern/abc_reader_mesh.h')
-rw-r--r-- | source/blender/io/alembic/intern/abc_reader_mesh.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/io/alembic/intern/abc_reader_mesh.h b/source/blender/io/alembic/intern/abc_reader_mesh.h index 2e34ca8ded0..e78f2186eda 100644 --- a/source/blender/io/alembic/intern/abc_reader_mesh.h +++ b/source/blender/io/alembic/intern/abc_reader_mesh.h @@ -42,9 +42,9 @@ class AbcMeshReader final : public AbcObjectReader { struct Mesh *read_mesh(struct Mesh *existing_mesh, const Alembic::Abc::ISampleSelector &sample_sel, - const int read_flag, + int read_flag, const char *velocity_name, - const float velocity_scale, + float velocity_scale, const char **err_str) override; bool topology_changed(Mesh *existing_mesh, const Alembic::Abc::ISampleSelector &sample_sel) override; @@ -75,9 +75,9 @@ class AbcSubDReader final : public AbcObjectReader { void readObjectData(Main *bmain, const Alembic::Abc::ISampleSelector &sample_sel) override; struct Mesh *read_mesh(struct Mesh *existing_mesh, const Alembic::Abc::ISampleSelector &sample_sel, - const int read_flag, + int read_flag, const char *velocity_name, - const float velocity_scale, + float velocity_scale, const char **err_str) override; }; |