From ab7ebf2b10f67b002447fb0e2cb352c2c178e128 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 18 Oct 2017 15:07:26 +1100 Subject: Cleanup: Use const for RNA EnumPropertyItem args Practically all access to enum data is read-only. --- source/blender/editors/io/io_collada.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/io') diff --git a/source/blender/editors/io/io_collada.c b/source/blender/editors/io/io_collada.c index cead08afd61..39065606201 100644 --- a/source/blender/editors/io/io_collada.c +++ b/source/blender/editors/io/io_collada.c @@ -308,19 +308,19 @@ void WM_OT_collada_export(wmOperatorType *ot) { struct StructRNA *func = ot->srna; - static EnumPropertyItem prop_bc_export_mesh_type[] = { + static const EnumPropertyItem prop_bc_export_mesh_type[] = { {BC_MESH_TYPE_VIEW, "view", 0, "View", "Apply modifier's view settings"}, {BC_MESH_TYPE_RENDER, "render", 0, "Render", "Apply modifier's render settings"}, {0, NULL, 0, NULL, NULL} }; - static EnumPropertyItem prop_bc_export_transformation_type[] = { + static const EnumPropertyItem prop_bc_export_transformation_type[] = { { BC_TRANSFORMATION_TYPE_MATRIX, "matrix", 0, "Matrix", "Use to specify transformations" }, { BC_TRANSFORMATION_TYPE_TRANSROTLOC, "transrotloc", 0, "TransRotLoc", "Use , , to specify transformations" }, { 0, NULL, 0, NULL, NULL } }; - static EnumPropertyItem prop_bc_export_texture_type[] = { + static const EnumPropertyItem prop_bc_export_texture_type[] = { { BC_TEXTURE_TYPE_MAT, "mat", 0, "Materials", "Export Materials" }, { BC_TEXTURE_TYPE_UV, "uv", 0, "UV Textures", "Export UV Textures (Face textures) as materials" }, { 0, NULL, 0, NULL, NULL } -- cgit v1.2.3