[Bf-blender-cvs] [3d3bc748849] master: Cleanup: remove redundant const qualifiers for POD types

Campbell Barton noreply at git.blender.org
Fri Jan 7 04:30:21 CET 2022


Commit: 3d3bc748849834ef74563deb603ab43859cffeeb
Author: Campbell Barton
Date:   Fri Jan 7 11:38:08 2022 +1100
Branches: master
https://developer.blender.org/rB3d3bc748849834ef74563deb603ab43859cffeeb

Cleanup: remove redundant const qualifiers for POD types

MSVC used to warn about const mismatch for arguments passed by value.
Remove these as newer versions of MSVC no longer show this warning.

===================================================================

M	source/blender/blenfont/BLF_api.h
M	source/blender/blenfont/intern/blf_internal.h
M	source/blender/blenkernel/BKE_DerivedMesh.h
M	source/blender/blenkernel/BKE_anim_data.h
M	source/blender/blenkernel/BKE_appdir.h
M	source/blender/blenkernel/BKE_asset_library.hh
M	source/blender/blenkernel/BKE_attribute.h
M	source/blender/blenkernel/BKE_attribute_access.hh
M	source/blender/blenkernel/BKE_attribute_math.hh
M	source/blender/blenkernel/BKE_blender_copybuffer.h
M	source/blender/blenkernel/BKE_blender_undo.h
M	source/blender/blenkernel/BKE_blendfile.h
M	source/blender/blenkernel/BKE_blendfile_link_append.h
M	source/blender/blenkernel/BKE_bpath.h
M	source/blender/blenkernel/BKE_brush.h
M	source/blender/blenkernel/BKE_bvhutils.h
M	source/blender/blenkernel/BKE_callbacks.h
M	source/blender/blenkernel/BKE_camera.h
M	source/blender/blenkernel/BKE_collection.h
M	source/blender/blenkernel/BKE_collision.h
M	source/blender/blenkernel/BKE_colorband.h
M	source/blender/blenkernel/BKE_colortools.h
M	source/blender/blenkernel/BKE_context.h
M	source/blender/blenkernel/BKE_crazyspace.h
M	source/blender/blenkernel/BKE_cryptomatte.h
M	source/blender/blenkernel/BKE_cryptomatte.hh
M	source/blender/blenkernel/BKE_curve.h
M	source/blender/blenkernel/BKE_curveprofile.h
M	source/blender/blenkernel/BKE_customdata.h
M	source/blender/blenkernel/BKE_data_transfer.h
M	source/blender/blenkernel/BKE_deform.h
M	source/blender/blenkernel/BKE_displist.h
M	source/blender/blenkernel/BKE_editmesh_bvh.h
M	source/blender/blenkernel/BKE_editmesh_tangent.h
M	source/blender/blenkernel/BKE_fluid.h
M	source/blender/blenkernel/BKE_freestyle.h
M	source/blender/blenkernel/BKE_geometry_set.hh
M	source/blender/blenkernel/BKE_gpencil.h
M	source/blender/blenkernel/BKE_gpencil_curve.h
M	source/blender/blenkernel/BKE_gpencil_geom.h
M	source/blender/blenkernel/BKE_gpencil_modifier.h
M	source/blender/blenkernel/BKE_icons.h
M	source/blender/blenkernel/BKE_idprop.h
M	source/blender/blenkernel/BKE_idtype.h
M	source/blender/blenkernel/BKE_image.h
M	source/blender/blenkernel/BKE_key.h
M	source/blender/blenkernel/BKE_lattice.h
M	source/blender/blenkernel/BKE_layer.h
M	source/blender/blenkernel/BKE_lib_id.h
M	source/blender/blenkernel/BKE_lib_override.h
M	source/blender/blenkernel/BKE_lib_query.h
M	source/blender/blenkernel/BKE_lib_remap.h
M	source/blender/blenkernel/BKE_lightprobe.h
M	source/blender/blenkernel/BKE_linestyle.h
M	source/blender/blenkernel/BKE_main.h
M	source/blender/blenkernel/BKE_main_idmap.h
M	source/blender/blenkernel/BKE_mask.h
M	source/blender/blenkernel/BKE_material.h
M	source/blender/blenkernel/BKE_mball.h
M	source/blender/blenkernel/BKE_mesh.h
M	source/blender/blenkernel/BKE_mesh_boolean_convert.hh
M	source/blender/blenkernel/BKE_mesh_fair.h
M	source/blender/blenkernel/BKE_mesh_iterators.h
M	source/blender/blenkernel/BKE_mesh_mapping.h
M	source/blender/blenkernel/BKE_mesh_mirror.h
M	source/blender/blenkernel/BKE_mesh_remap.h
M	source/blender/blenkernel/BKE_mesh_runtime.h
M	source/blender/blenkernel/BKE_mesh_sample.hh
M	source/blender/blenkernel/BKE_mesh_tangent.h
M	source/blender/blenkernel/BKE_modifier.h
M	source/blender/blenkernel/BKE_multires.h
M	source/blender/blenkernel/BKE_node.h
M	source/blender/blenkernel/BKE_object.h
M	source/blender/blenkernel/BKE_object_deform.h
M	source/blender/blenkernel/BKE_ocean.h
M	source/blender/blenkernel/BKE_packedFile.h
M	source/blender/blenkernel/BKE_paint.h
M	source/blender/blenkernel/BKE_particle.h
M	source/blender/blenkernel/BKE_pbvh.h
M	source/blender/blenkernel/BKE_pointcache.h
M	source/blender/blenkernel/BKE_pointcloud.h
M	source/blender/blenkernel/BKE_rigidbody.h
M	source/blender/blenkernel/BKE_scene.h
M	source/blender/blenkernel/BKE_screen.h
M	source/blender/blenkernel/BKE_shader_fx.h
M	source/blender/blenkernel/BKE_shrinkwrap.h
M	source/blender/blenkernel/BKE_spline.hh
M	source/blender/blenkernel/BKE_subdiv.h
M	source/blender/blenkernel/BKE_subdiv_ccg.h
M	source/blender/blenkernel/BKE_subdiv_eval.h
M	source/blender/blenkernel/BKE_subdiv_foreach.h
M	source/blender/blenkernel/BKE_subdiv_modifier.h
M	source/blender/blenkernel/BKE_text.h
M	source/blender/blenkernel/BKE_text_suggestions.h
M	source/blender/blenkernel/BKE_texture.h
M	source/blender/blenkernel/BKE_tracking.h
M	source/blender/blenkernel/BKE_undo_system.h
M	source/blender/blenkernel/BKE_vfont.h
M	source/blender/blenkernel/BKE_vfontdata.h
M	source/blender/blenkernel/BKE_volume.h
M	source/blender/blenkernel/BKE_volume_to_mesh.hh
M	source/blender/blenkernel/BKE_workspace.h
M	source/blender/blenkernel/BKE_writeavi.h
M	source/blender/blenkernel/intern/attribute_access_intern.hh
M	source/blender/blenkernel/intern/data_transfer_intern.h
M	source/blender/blenkernel/intern/multires_reshape.h
M	source/blender/blenlib/BLI_array.h
M	source/blender/blenlib/BLI_array_store_utils.h
M	source/blender/blenlib/BLI_array_utils.h
M	source/blender/blenlib/BLI_assert.h
M	source/blender/blenlib/BLI_astar.h
M	source/blender/blenlib/BLI_bitmap_draw_2d.h
M	source/blender/blenlib/BLI_boxpack_2d.h
M	source/blender/blenlib/BLI_convexhull_2d.h
M	source/blender/blenlib/BLI_edgehash.h
M	source/blender/blenlib/BLI_endian_switch.h
M	source/blender/blenlib/BLI_fileops.h
M	source/blender/blenlib/BLI_ghash.h
M	source/blender/blenlib/BLI_kdopbvh.h
M	source/blender/blenlib/BLI_kdtree_impl.h
M	source/blender/blenlib/BLI_lasso_2d.h
M	source/blender/blenlib/BLI_listbase.h
M	source/blender/blenlib/BLI_math_base.h
M	source/blender/blenlib/BLI_math_color.h
M	source/blender/blenlib/BLI_math_geom.h
M	source/blender/blenlib/BLI_math_interp.h
M	source/blender/blenlib/BLI_math_matrix.h
M	source/blender/blenlib/BLI_math_rotation.h
M	source/blender/blenlib/BLI_math_solvers.h
M	source/blender/blenlib/BLI_math_statistics.h
M	source/blender/blenlib/BLI_math_vector.h
M	source/blender/blenlib/BLI_mempool.h
M	source/blender/blenlib/BLI_mesh_intersect.hh
M	source/blender/blenlib/BLI_noise.hh
M	source/blender/blenlib/BLI_path_util.h
M	source/blender/blenlib/BLI_polyfill_2d.h
M	source/blender/blenlib/BLI_polyfill_2d_beautify.h
M	source/blender/blenlib/BLI_quadric.h
M	source/blender/blenlib/BLI_rect.h
M	source/blender/blenlib/BLI_scanfill.h
M	source/blender/blenlib/BLI_smallhash.h
M	source/blender/blenlib/BLI_string.h
M	source/blender/blenlib/BLI_string_ref.hh
M	source/blender/blenlib/BLI_string_utf8.h
M	source/blender/blenlib/BLI_string_utils.h
M	source/blender/blenlib/BLI_task.h
M	source/blender/blenlib/BLI_threads.h
M	source/blender/blenlib/BLI_timecode.h
M	source/blender/blenlib/BLI_virtual_array.hh
M	source/blender/blenlib/BLI_virtual_vector_array.hh
M	source/blender/blenlib/BLI_winstuff.h
M	source/blender/blenlib/intern/kdtree_impl.h
M	source/blender/blenloader/BLO_readfile.h
M	source/blender/blenloader/BLO_writefile.h
M	source/blender/blenloader/intern/readfile.h
M	source/blender/blenloader/intern/versioning_common.h
M	source/blender/bmesh/intern/bmesh_construct.h
M	source/blender/bmesh/intern/bmesh_core.h
M	source/blender/bmesh/intern/bmesh_delete.h
M	source/blender/bmesh/intern/bmesh_edgeloop.h
M	source/blender/bmesh/intern/bmesh_interp.h
M	source/blender/bmesh/intern/bmesh_iterators.h
M	source/blender/bmesh/intern/bmesh_log.h
M	source/blender/bmesh/intern/bmesh_marking.h
M	source/blender/bmesh/intern/bmesh_mesh.h
M	source/blender/bmesh/intern/bmesh_mesh_convert.h
M	source/blender/bmesh/intern/bmesh_mesh_normals.h
M	source/blender/bmesh/intern/bmesh_mesh_partial_update.h
M	source/blender/bmesh/intern/bmesh_mods.h
M	source/blender/bmesh/intern/bmesh_operator_api.h
M	source/blender/bmesh/intern/bmesh_operators.h
M	source/blender/bmesh/intern/bmesh_polygon.h
M	source/blender/bmesh/intern/bmesh_polygon_edgenet.h
M	source/blender/bmesh/intern/bmesh_private.h
M	source/blender/bmesh/intern/bmesh_query.h
M	source/blender/bmesh/intern/bmesh_query_uv.h
M	source/blender/bmesh/intern/bmesh_structure.h
M	source/blender/bmesh/tools/bmesh_beautify.h
M	source/blender/bmesh/tools/bmesh_bevel.h
M	source/blender/bmesh/tools/bmesh_bisect_plane.h
M	source/blender/bmesh/tools/bmesh_boolean.h
M	source/blender/bmesh/tools/bmesh_decimate.h
M	source/blender/bmesh/tools/bmesh_edgenet.h
M	source/blender/bmesh/tools/bmesh_edgesplit.h
M	source/blender/bmesh/tools/bmesh_intersect.h
M	source/blender/bmesh/tools/bmesh_intersect_edges.h
M	source/blender/bmesh/tools/bmesh_path_region_uv.h
M	source/blender/bmesh/tools/bmesh_triangulate.h
M	source/blender/bmesh/tools/bmesh_wireframe.h
M	source/blender/compositor/intern/COM_ExecutionGroup.h
M	source/blender/compositor/intern/COM_FullFrameExecutionModel.h
M	source/blender/compositor/intern/COM_MemoryBuffer.h
M	source/blender/compositor/intern/COM_Node.h
M	source/blender/compositor/operations/COM_GaussianAlphaBlurBaseOperation.h
M	source/blender/compositor/operations/COM_GaussianBlurBaseOperation.h
M	source/blender/compositor/operations/COM_GaussianBokehBlurOperation.h
M	source/blender/compositor/operations/COM_GlareBaseOperation.h
M	source/blender/compositor/operations/COM_InpaintOperation.h
M	source/blender/compositor/operations/COM_KeyingBlurOperation.h
M	source/blender/compositor/operations/COM_KeyingClipOperation.h
M	source/blender/compositor/operations/COM_OutputFileMultiViewOperation.h
M	source/blender/compositor/operations/COM_OutputFileOperation.h
M	source/blender/compositor/operations/COM_RotateOperation.h
M	source/blender/compositor/operations/COM_ScaleOperation.h
M	source/blender/compositor/operations/COM_VectorBlurOperation.h
M	source/blender/depsgraph/DEG_depsgraph.h
M	source/blender/depsgraph/DEG_depsgraph_build.h
M	source/blender/draw/DRW_engine.h
M	source/blender/draw/DRW_select_buffer.h
M	source/blender/draw/engines/eevee/eevee_lightcache.h
M	source/blender/draw/engines/eevee/eevee_private.h
M	source/blender/draw/engines/overlay/overlay_private.h
M	source/blender/draw/engines/workbench/workbench_private.h
M	source/blender/draw/intern/DRW_render.h
M	source/blender/draw/intern/draw_cache.h
M	source/blender/draw/intern/draw_cache_extract.h
M	source/blender/draw/intern/draw_cache_impl.h
M	source/blender/draw/intern/draw_debug.h
M	source/blender/draw/intern/draw_manager_text.h
M	source/blender/draw/intern/draw_subdivision.h
M	source/blender/draw/intern/mesh_extractors/extract_mesh.h
M	source/blender/editors/armature/armature_intern.h
M	source/blender/editors/curve/curve_intern.h
M	source/blender/editors/gizmo_library/gizmo_library_intern.h
M	source/blender/editors/gpencil/gpencil_intern.h
M	source/blender/editors/gpencil/gpencil_trace.h
M	source/blender/editors/include/ED_armature.h
M	source/blender/editors/include/ED_buttons.h
M	source/blender/editors/include/ED_curve.h
M	source/blender/editors/include/ED_file_indexer.h
M	source/blender/editors/include/ED_fileselect.h
M	source/blender/editors/include/ED_gizmo_library.h
M	source/blender/editors/include/ED_gpencil.h
M	source/blender/editors/include/ED_image.h
M	source/blender/editors/include/ED_keyframes_edit.h
M	source/blender/editors/include/ED_keyframes_keylist.h
M	source/blender/editors/include/ED_keyframing.h
M	source/blender/editors/include/ED_lattice.h
M	source/blender/editors/include/ED_mask.h
M	source/blender/editors/include/ED_mesh.h
M	source/blender/editors/include/ED_numinput.h
M	source/blender/editors/include/ED_object.h
M	source/blender/editors/include/ED_particle.h
M	source/blender/editors/include/ED_render.h
M	source/blender/editors/include/ED_screen.h
M	source/blender/editors/include/ED_sculpt.h
M	source/blender/editors/include/ED_select_utils.h
M	source/blender/editors/include/ED_transform.h
M	source/blender/editors/include/ED_transform_snap_object_context.h
M	source/blender/editors/include/ED_transverts.h
M	source/blender/editors/include/ED_util.h
M	source/blender/editors/include/ED_uvedit.h
M	source/blender/editors/include/ED_view3d.h
M	source/blender/editors/include/ED_view3d_offscreen.h
M	source/blender/editors/include/UI_interface.h
M	source/blender/editors/include/UI_interface.hh
M	source/blender/editors/include/UI_interface_icons.h
M	source/blender/editors/include/UI_resources.h
M	source/blender/editors/include/UI_view2d.h
M	source/blender/editors/interface/interface_eyedropper_intern.h
M	source/blender/editors/interface/interface_intern.h
M	source/blender/editors/mask/mask_intern.h
M	source/blender/editors/mesh/mesh_intern.h
M	source/blender/editors/object/object_intern.h
M	source/blender/editors/screen/screen_intern.h
M	source/blender/editors/sculpt_paint/paint_intern.h
M	source/blender/editors/sculpt_paint/sculpt_intern.h
M	source/blender/editors/space_clip/clip_intern.h
M	source/blender/editors/space_file/file_intern.h
M	source/blender/editors/space_file/filelist.h
M	source/blender/editors/space_file/fsmenu.h
M	source/blender/editors/space_info/textview.h
M	source/blender/editors/space_node/node_intern.hh
M	source/blender/editors/space_outliner/outliner_intern.h
M	source/blender/editors/space_sequencer/sequencer_intern.h
M	source/blender/editors/space_spreadsheet/spreadsheet_column.hh
M	source/blender/editors/space_text/text_format.h
M	source/blender/editors/space_text/text_intern.h
M	source/blender/editors/space_view3d/view3d_intern.h
M	source/blender/editors/transform/transform.h
M	source/blender/editors/transform/transform_convert.h
M	source/blender/editors/transform/transform_mode.h
M	source/blender/editors/transform/transform_orientations.h
M	source/blender/editors/transform/transform_snap.h
M	source/blender/editors/uvedit/uvedit_intern.h
M	source/blender/freestyle/intern/scene_graph/FrsMaterial.h
M	source/blender/freestyle/intern/stroke/Curve.h
M	source/blender/freestyle/intern/view_map/ViewMapIO.h
M	source/blender/functions/FN_field.hh
M	source/blender/functions/FN_generic_virtual_array.hh
M	source/blender/functions/FN_generic_virtual_vector_array.hh
M	source/blender/gpencil_modifiers/intern/MOD_gpencil_util.h
M	source/blender/gpencil_modifiers/intern/lineart/MOD_lineart.h
M	source/blender/gpu/GPU_batch_presets.h
M	source/blender/gpu/GPU_buffers.h
M	source/blender/gpu/GPU_immediate_util.h
M	source/blender/gpu/GPU_material.h
M	source/blender/gpu/GPU_shader.h
M	source/blender/gpu/GPU_texture.h
M	source/blender/gpu/intern/gpu_material_library.h
M	source/blender/gpu/intern/gpu_shader_interface.hh
M	source/blender/gpu/intern/gpu_shader_private.hh
M	source/blender/gpu/opengl/gl_shader.hh
M	source/blender/gpu/opengl/gl_state.hh
M	source/blender/gpu/opengl/gl_vertex_array.hh
M	source/blender/imbuf/IMB_colormanagement.h
M	source/blender/imbuf/IMB_imbuf.h
M	source/blender/imbuf/intern/openexr/openexr_multi.h
M	source/blender/io/alembic/intern/abc_util.h
M	source/blender/io/collada/AnimationImporter.h
M	source/blender/io/collada/ArmatureImporter.h
M	source/blender/io/collada/BCAnimationCurve.h
M	source/blender/io/collada/BCMath.h
M	source/blender/io/collada/BCSampleData.h
M	source/blender/io/collada/collada_utils.h
M	source/blender/io/common/IO_abstract_hierarchy_iterator.h
M	source/blender/io/gpencil/intern/gpencil_io_base.hh
M	source/blender/io/gpencil/intern/gpencil_io_export_pdf.hh
M	source/blender/io/gpencil/intern/gpencil_io_export_svg.hh
M	source/blender/io/gpencil/intern/gpencil_io_import_base.hh
M	source/blender/io/gpencil/intern/gpencil_io_import_svg.hh
M	source/blender/io/wavefront_obj/exporter/obj_export_file_writer.hh
M	source/blender/io/wavefront_obj/exporter/obj_export_mesh.hh
M	source/blender/io/wavefront_obj/exporter/obj_export_nurbs.hh
M	source/blender/io/wavefront_obj/exporter/obj_exporter.hh
M	source/blender/makesdna/DNA_genfile.h
M	source/blender/makesdna/intern/dna_utils.h
M	source/blender/makesrna/RNA_access.h
M	source/blender/makesrna/RNA_define.h
M	source/blender/makesrna/intern/rna_internal.h
M	source/blender/makesrna/intern/rna_internal_types.h
M	source/blender/modifiers/intern/MOD_meshcache_util.h
M	source/blender/modifiers/intern/MOD_util.h
M	source/blender/modifiers/intern/MOD_weightvg_util.h
M	source/blender/nodes/NOD_geometry_exec.hh
M	source/blender/nodes/NOD_math_functions.hh
M	source/blender/nodes/NOD_socket_declarations.hh
M	source/blender/nodes/geometry/node_geometry_util.hh
M	source/blender/python/BPY_extern.h
M	source/blender/python/BPY_extern_run.h
M	source/blender/python/bmesh/bmesh_py_types.h
M	source/blender/python/bmesh/bmesh_py_types_customdata.h
M	source/blender/python/generic/py_capi_utils.h
M	source/blender/python/gpu/gpu_py_buffer.h
M	source/blender/python/intern/bpy_capi_utils.h
M	source/blender/python/intern/bpy_rna.h
M	source/blender/python/mathutils/mathutils_Euler.h
M	source/blender/python/mathutils/mathutils_Matrix.h
M	source/blender/python/mathutils/mathutils_Vector.h
M	source/blender/render/RE_bake.h
M	source/blender/render/RE_engine.h
M	source/blender/render/RE_pipeline.h
M	source/blender/render/RE_texture.h
M	source/blender/render/intern/render_result.h
M	source/blender/render/intern/texture_common.h
M	source/blender/sequencer/SEQ_add.h
M	source/blender/sequencer/SEQ_edit.h
M	source/blender/sequencer/SEQ_effects.h
M	source/blender/sequencer/SEQ_iterator.h
M	source/blender/sequencer/SEQ_sequencer.h
M	source/blender/sequencer/SEQ_time.h
M	source/blender/sequencer/SEQ_transform.h
M	source/blender/sequencer/SEQ_utils.h
M	source/blender/sequencer/intern/multiview.h
M	source/blender/sequencer/intern/proxy.h
M	source/blender/sequencer/intern/sequencer.h
M	source/blender/sequencer/intern/strip_time.h
M	source/blender/windowmanager/WM_api.h
M	source/blender/windowmanager/WM_keymap.h
M	source/blender/windowmanager/gizmo/WM_gizmo_api.h
M	source/blender/windowmanager/gizmo/intern/wm_gizmo_intern.h
M	source/blender/windowmanager/wm_event_types.h
M	source/blender/windowmanager/wm_window.h

===================================================================

diff --git a/source/blender/blenfont/BLF_api.h b/source/blender/blenfont/BLF_api.h
index bd1fa4ce4e5..76a6135baaf 100644
--- a/source/blender/blenfont/BLF_api.h
+++ b/source/blender/blenfont/BLF_api.h
@@ -124,7 +124,7 @@ int BLF_draw_mono(int fontid, const char *str, size_t str_len, int cwidth) ATTR_
 typedef bool (*BLF_GlyphBoundsFn)(const char *str,
                                   const size_t str_step_ofs,
                                   const struct rcti *glyph_step_bounds,
-                                  const int glyph_advance_x,
+                                  int glyph_advance_x,
                                   const struct rctf *glyph_bounds,
                                   const int glyph_bearing[2],
                                   void *user_data);
@@ -298,9 +298,9 @@ void BLF_dir_free(char **dirs, int count) ATTR_NONNULL();
 void BLF_thumb_preview(const char *filename,
                        const char **draw_str,
                        const char **i18n_draw_str,
-                       const unsigned char draw_str_lines,
+                       unsigned char draw_str_lines,
                        const float font_color[4],
-                       const int font_size,
+                       int font_size,
                        unsigned char *buf,
                        int w,
                        int h,
@@ -326,8 +326,8 @@ int BLF_set_default(void);
 
 /* blf_font_default.c */
 
-int BLF_load_default(const bool unique);
-int BLF_load_mono_default(const bool unique);
+int BLF_load_default(bool unique);
+int BLF_load_mono_default(bool unique);
 
 #ifdef DEBUG
 void BLF_state_print(int fontid);
diff --git a/source/blender/blenfont/intern/blf_internal.h b/source/blender/blenfont/intern/blf_internal.h
index 02e4a896a31..23e42ec777f 100644
--- a/source/blender/blenfont/intern/blf_internal.h
+++ b/source/blender/blenfont/intern/blf_internal.h
@@ -123,7 +123,7 @@ void blf_font_boundbox_foreach_glyph(struct FontBLF *font,
                                      bool (*user_fn)(const char *str,
                                                      const size_t str_step_ofs,
                                                      const struct rcti *glyph_step_bounds,
-                                                     const int glyph_advance_x,
+                                                     int glyph_advance_x,
                                                      const struct rctf *glyph_bounds,
                                                      const int glyph_bearing[2],
                                                      void *user_data),
diff --git a/source/blender/blenkernel/BKE_DerivedMesh.h b/source/blender/blenkernel/BKE_DerivedMesh.h
index 932ef234342..c5171371afc 100644
--- a/source/blender/blenkernel/BKE_DerivedMesh.h
+++ b/source/blender/blenkernel/BKE_DerivedMesh.h
@@ -376,7 +376,7 @@ void DM_interp_vert_data(struct DerivedMesh *source,
                          int count,
                          int dest_index);
 
-void mesh_get_mapped_verts_coords(struct Mesh *me_eval, float (*r_cos)[3], const int totcos);
+void mesh_get_mapped_verts_coords(struct Mesh *me_eval, float (*r_cos)[3], int totcos);
 
 /**
  * Same as above but won't use render settings.
diff --git a/source/blender/blenkernel/BKE_anim_data.h b/source/blender/blenkernel/BKE_anim_data.h
index bee8bde989c..81c49917b63 100644
--- a/source/blender/blenkernel/BKE_anim_data.h
+++ b/source/blender/blenkernel/BKE_anim_data.h
@@ -117,9 +117,7 @@ bool BKE_animdata_copy_id(struct Main *bmain, struct ID *id_to, struct ID *id_fr
  */
 void BKE_animdata_copy_id_action(struct Main *bmain, struct ID *id);
 
-void BKE_animdata_duplicate_id_action(struct Main *bmain,
-                                      struct ID *id,
-                                      const uint duplicate_flags);
+void BKE_animdata_duplicate_id_action(struct Main *bmain, struct ID *id, uint duplicate_flags);
 
 /* Merge copies of data from source AnimData block */
 typedef enum eAnimData_MergeCopy_Modes {
diff --git a/source/blender/blenkernel/BKE_appdir.h b/source/blender/blenkernel/BKE_appdir.h
index dd589282bdd..e92909fb3ca 100644
--- a/source/blender/blenkernel/BKE_appdir.h
+++ b/source/blender/blenkernel/BKE_appdir.h
@@ -88,26 +88,21 @@ bool BKE_appdir_folder_caches(char *r_path, size_t path_len);
  * this may contain path separators but must resolve to a directory, checked with #BLI_is_dir.
  * \return The path if found, NULL string if not.
  */
-bool BKE_appdir_folder_id_ex(const int folder_id,
-                             const char *subfolder,
-                             char *path,
-                             size_t path_len);
-const char *BKE_appdir_folder_id(const int folder_id, const char *subfolder);
+bool BKE_appdir_folder_id_ex(int folder_id, const char *subfolder, char *path, size_t path_len);
+const char *BKE_appdir_folder_id(int folder_id, const char *subfolder);
 /**
  * Returns the path to a folder in the user area, creating it if it doesn't exist.
  */
-const char *BKE_appdir_folder_id_create(const int folder_id, const char *subfolder);
+const char *BKE_appdir_folder_id_create(int folder_id, const char *subfolder);
 /**
  * Returns the path to a folder in the user area without checking that it actually exists first.
  */
-const char *BKE_appdir_folder_id_user_notest(const int folder_id, const char *subfolder);
+const char *BKE_appdir_folder_id_user_notest(int folder_id, const char *subfolder);
 /**
  * Returns the path of the top-level version-specific local, user or system directory.
  * If check_is_dir, then the result will be NULL if the directory doesn't exist.
  */
-const char *BKE_appdir_folder_id_version(const int folder_id,
-                                         const int version,
-                                         const bool check_is_dir);
+const char *BKE_appdir_folder_id_version(int folder_id, int version, bool check_is_dir);
 
 /**
  * Check if this is an install with user files kept together
@@ -146,8 +141,8 @@ bool BKE_appdir_font_folder_default(char *dir);
  */
 bool BKE_appdir_program_python_search(char *fullpath,
                                       const size_t fullpath_len,
-                                      const int version_major,
-                                      const int version_minor);
+                                      int version_major,
+                                      int version_minor);
 
 /**
  * Initialize path to temporary directory.
diff --git a/source/blender/blenkernel/BKE_asset_library.hh b/source/blender/blenkernel/BKE_asset_library.hh
index 15f7991e75e..37e2ad38a29 100644
--- a/source/blender/blenkernel/BKE_asset_library.hh
+++ b/source/blender/blenkernel/BKE_asset_library.hh
@@ -63,7 +63,7 @@ struct AssetLibrary {
   void on_blend_save_handler_register();
   void on_blend_save_handler_unregister();
 
-  void on_blend_save_post(struct Main *, struct PointerRNA **pointers, const int num_pointers);
+  void on_blend_save_post(struct Main *, struct PointerRNA **pointers, int num_pointers);
 
  private:
   bCallbackFuncStore on_save_callback_store_{};
diff --git a/source/blender/blenkernel/BKE_attribute.h b/source/blender/blenkernel/BKE_attribute.h
index 1e2dcf09b64..db8f3759bf8 100644
--- a/source/blender/blenkernel/BKE_attribute.h
+++ b/source/blender/blenkernel/BKE_attribute.h
@@ -54,19 +54,16 @@ typedef enum AttributeDomain {
 
 bool BKE_id_attributes_supported(struct ID *id);
 
-struct CustomDataLayer *BKE_id_attribute_new(struct ID *id,
-                                             const char *name,
-                                             const int type,
-                                             const AttributeDomain domain,
-                                             struct ReportList *reports);
+struct CustomDataLayer *BKE_id_attribute_new(
+    struct ID *id, const char *name, int type, AttributeDomain domain, struct ReportList *reports);
 bool BKE_id_attribute_remove(struct ID *id,
                              struct CustomDataLayer *layer,
                              struct ReportList *reports);
 
 struct CustomDataLayer *BKE_id_attribute_find(const struct ID *id,
                                               const char *name,
-                                              const int type,
-                                              const AttributeDomain domain);
+                                              int type,
+                                              AttributeDomain domain);
 
 AttributeDomain BKE_id_attribute_domain(struct ID *id, struct CustomDataLayer *layer);
 int BKE_id_attribute_data_length(struct ID *id, struct CustomDataLayer *layer);
diff --git a/source/blender/blenkernel/BKE_attribute_access.hh b/source/blender/blenkernel/BKE_attribute_access.hh
index 114d9e1e0d7..f69ba79e23f 100644
--- a/source/blender/blenkernel/BKE_attribute_access.hh
+++ b/source/blender/blenkernel/BKE_attribute_access.hh
@@ -264,7 +264,7 @@ class OutputAttribute {
   OutputAttribute(GVMutableArray varray,
                   AttributeDomain domain,
                   SaveFn save,
-                  const bool ignore_old_values);
+                  bool ignore_old_values);
 
   ~OutputAttribute();
 
@@ -387,7 +387,7 @@ class CustomDataAttributes {
   CustomDataAttributes(CustomDataAttributes &&other);
   CustomDataAttributes &operator=(const CustomDataAttributes &other);
 
-  void reallocate(const int size);
+  void reallocate(int size);
 
   void clear();
 
@@ -423,8 +423,7 @@ class CustomDataAttributes {
    */
   void reorder(Span<AttributeIDRef> new_order);
 
-  bool foreach_attribute(const AttributeForeachCallback callback,
-                         const AttributeDomain domain) const;
+  bool foreach_attribute(const AttributeForeachCallback callback, AttributeDomain domain) const;
 };
 
 /* -------------------------------------------------------------------- */
diff --git a/source/blender/blenkernel/BKE_attribute_math.hh b/source/blender/blenkernel/BKE_attribute_math.hh
index 2ce41e95b65..802c744972c 100644
--- a/source/blender/blenkernel/BKE_attribute_math.hh
+++ b/source/blender/blenkernel/BKE_attribute_math.hh
@@ -141,7 +141,7 @@ inline ColorGeomet

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list