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/usd/intern/usd_reader_xform.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/usd/intern/usd_reader_xform.h')
-rw-r--r-- | source/blender/io/usd/intern/usd_reader_xform.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/io/usd/intern/usd_reader_xform.h b/source/blender/io/usd/intern/usd_reader_xform.h index 587ac373a4f..7720a054772 100644 --- a/source/blender/io/usd/intern/usd_reader_xform.h +++ b/source/blender/io/usd/intern/usd_reader_xform.h @@ -46,7 +46,7 @@ class USDXformReader : public USDPrimReader { void create_object(Main *bmain, double motionSampleTime) override; void read_object_data(Main *bmain, double motionSampleTime) override; - void read_matrix(float r_mat[4][4], const float time, const float scale, bool *r_is_constant); + void read_matrix(float r_mat[4][4], float time, float scale, bool *r_is_constant); bool use_parent_xform() const { |