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/blenkernel/BKE_cachefile.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/blenkernel/BKE_cachefile.h')
-rw-r--r-- | source/blender/blenkernel/BKE_cachefile.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/blenkernel/BKE_cachefile.h b/source/blender/blenkernel/BKE_cachefile.h index ac621bfdcb9..0ab814c2d94 100644 --- a/source/blender/blenkernel/BKE_cachefile.h +++ b/source/blender/blenkernel/BKE_cachefile.h @@ -50,9 +50,7 @@ bool BKE_cachefile_filepath_get(const struct Main *bmain, const struct CacheFile *cache_file, char r_filename[1024]); -float BKE_cachefile_time_offset(const struct CacheFile *cache_file, - const float time, - const float fps); +float BKE_cachefile_time_offset(const struct CacheFile *cache_file, float time, float fps); /* Modifiers and constraints open and free readers through these. */ void BKE_cachefile_reader_open(struct CacheFile *cache_file, @@ -69,7 +67,7 @@ void BKE_cachefile_reader_free(struct CacheFile *cache_file, struct CacheReader */ bool BKE_cache_file_uses_render_procedural(const struct CacheFile *cache_file, struct Scene *scene, - const int dag_eval_mode); + int dag_eval_mode); #ifdef __cplusplus } |