Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-01-07 03:38:08 +0300
committerCampbell Barton <campbell@blender.org>2022-01-07 06:16:26 +0300
commit3d3bc748849834ef74563deb603ab43859cffeeb (patch)
treede74ce4722b2cb032c22dbc090a15dd2e172c29b /source/blender/blenkernel/BKE_subdiv_foreach.h
parentbb69c19f08ac681d4386325e4318ebfbef2e9531 (diff)
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.
Diffstat (limited to 'source/blender/blenkernel/BKE_subdiv_foreach.h')
-rw-r--r--source/blender/blenkernel/BKE_subdiv_foreach.h92
1 files changed, 46 insertions, 46 deletions
diff --git a/source/blender/blenkernel/BKE_subdiv_foreach.h b/source/blender/blenkernel/BKE_subdiv_foreach.h
index f63e23917ef..7d9a589666a 100644
--- a/source/blender/blenkernel/BKE_subdiv_foreach.h
+++ b/source/blender/blenkernel/BKE_subdiv_foreach.h
@@ -35,77 +35,77 @@ struct SubdivForeachContext;
struct SubdivToMeshSettings;
typedef bool (*SubdivForeachTopologyInformationCb)(const struct SubdivForeachContext *context,
- const int num_vertices,
- const int num_edges,
- const int num_loops,
- const int num_polygons,
+ int num_vertices,
+ int num_edges,
+ int num_loops,
+ int num_polygons,
const int *subdiv_polygon_offset);
typedef void (*SubdivForeachVertexFromCornerCb)(const struct SubdivForeachContext *context,
void *tls,
- const int ptex_face_index,
- const float u,
- const float v,
- const int coarse_vertex_index,
- const int coarse_poly_index,
- const int coarse_corner,
- const int subdiv_vertex_index);
+ int ptex_face_index,
+ float u,
+ float v,
+ int coarse_vertex_index,
+ int coarse_poly_index,
+ int coarse_corner,
+ int subdiv_vertex_index);
typedef void (*SubdivForeachVertexFromEdgeCb)(const struct SubdivForeachContext *context,
void *tls,
- const int ptex_face_index,
- const float u,
- const float v,
- const int coarse_edge_index,
- const int coarse_poly_index,
- const int coarse_corner,
- const int subdiv_vertex_index);
+ int ptex_face_index,
+ float u,
+ float v,
+ int coarse_edge_index,
+ int coarse_poly_index,
+ int coarse_corner,
+ int subdiv_vertex_index);
typedef void (*SubdivForeachVertexInnerCb)(const struct SubdivForeachContext *context,
void *tls,
- const int ptex_face_index,
- const float u,
- const float v,
- const int coarse_poly_index,
- const int coarse_corner,
- const int subdiv_vertex_index);
+ int ptex_face_index,
+ float u,
+ float v,
+ int coarse_poly_index,
+ int coarse_corner,
+ int subdiv_vertex_index);
typedef void (*SubdivForeachEdgeCb)(const struct SubdivForeachContext *context,
void *tls,
- const int coarse_edge_index,
- const int subdiv_edge_index,
- const int subdiv_v1,
- const int subdiv_v2);
+ int coarse_edge_index,
+ int subdiv_edge_index,
+ int subdiv_v1,
+ int subdiv_v2);
typedef void (*SubdivForeachLoopCb)(const struct SubdivForeachContext *context,
void *tls,
- const int ptex_face_index,
- const float u,
- const float v,
- const int coarse_loop_index,
- const int coarse_poly_index,
- const int coarse_corner,
- const int subdiv_loop_index,
- const int subdiv_vertex_index,
- const int subdiv_edge_index);
+ int ptex_face_index,
+ float u,
+ float v,
+ int coarse_loop_index,
+ int coarse_poly_index,
+ int coarse_corner,
+ int subdiv_loop_index,
+ int subdiv_vertex_index,
+ int subdiv_edge_index);
typedef void (*SubdivForeachPolygonCb)(const struct SubdivForeachContext *context,
void *tls,
- const int coarse_poly_index,
- const int subdiv_poly_index,
- const int start_loop_index,
- const int num_loops);
+ int coarse_poly_index,
+ int subdiv_poly_index,
+ int start_loop_index,
+ int num_loops);
typedef void (*SubdivForeachLooseCb)(const struct SubdivForeachContext *context,
void *tls,
- const int coarse_vertex_index,
- const int subdiv_vertex_index);
+ int coarse_vertex_index,
+ int subdiv_vertex_index);
typedef void (*SubdivForeachVertexOfLooseEdgeCb)(const struct SubdivForeachContext *context,
void *tls,
- const int coarse_edge_index,
- const float u,
- const int subdiv_vertex_index);
+ int coarse_edge_index,
+ float u,
+ int subdiv_vertex_index);
typedef struct SubdivForeachContext {
/* Is called when topology information becomes available.