Cleanup: clang-tidy modernize-redundant-void-arg

This commit is contained in:
Aaron Carlisle 2021-12-29 18:51:10 -05:00
parent d3a31311b9
commit 9d3264b4fd
6 changed files with 13 additions and 13 deletions

View File

@ -61,11 +61,11 @@
namespace blender::meshintersect {
# ifdef PERFDEBUG
static void perfdata_init(void);
static void perfdata_init();
static void incperfcount(int countnum);
static void bumpperfcount(int countnum, int amt);
static void doperfmax(int maxnum, int val);
static void dump_perfdata(void);
static void dump_perfdata();
# endif
/** For debugging, can disable threading in intersect code with this static constant. */

View File

@ -109,7 +109,7 @@ struct TaskNode {
#endif
};
TaskGraph *BLI_task_graph_create(void)
TaskGraph *BLI_task_graph_create()
{
return new TaskGraph();
}

View File

@ -339,7 +339,7 @@ void GPU_shader_bind(GPUShader *gpu_shader)
}
}
void GPU_shader_unbind(void)
void GPU_shader_unbind()
{
#ifndef NDEBUG
Context *ctx = Context::get();

View File

@ -190,7 +190,7 @@ using namespace blender::gpu;
/* ------ Memory Management ------ */
uint GPU_texture_memory_usage_get(void)
uint GPU_texture_memory_usage_get()
{
/* TODO(fclem): Do that inside the new Texture class. */
return 0;
@ -424,7 +424,7 @@ void GPU_texture_unbind(GPUTexture *tex_)
Context::get()->state_manager->texture_unbind(tex);
}
void GPU_texture_unbind_all(void)
void GPU_texture_unbind_all()
{
Context::get()->state_manager->texture_unbind_all();
}
@ -439,7 +439,7 @@ void GPU_texture_image_unbind(GPUTexture *tex)
Context::get()->state_manager->image_unbind(unwrap(tex));
}
void GPU_texture_image_unbind_all(void)
void GPU_texture_image_unbind_all()
{
Context::get()->state_manager->image_unbind_all();
}
@ -613,7 +613,7 @@ void GPU_texture_get_mipmap_size(GPUTexture *tex, int lvl, int *r_size)
* Override texture sampler state for one sampler unit only.
* \{ */
void GPU_samplers_update(void)
void GPU_samplers_update()
{
GPUBackend::get()->samplers_update();
}

View File

@ -232,7 +232,7 @@ static void node_frame_init(bNodeTree *UNUSED(ntree), bNode *node)
data->label_size = 20;
}
void register_node_type_frame(void)
void register_node_type_frame()
{
/* frame type is used for all tree types, needs dynamic allocation */
bNodeType *ntype = MEM_cnew<bNodeType>("frame node type");
@ -261,7 +261,7 @@ static void node_reroute_init(bNodeTree *ntree, bNode *node)
nodeAddStaticSocket(ntree, node, SOCK_OUT, SOCK_RGBA, PROP_NONE, "Output", "Output");
}
void register_node_type_reroute(void)
void register_node_type_reroute()
{
/* frame type is used for all tree types, needs dynamic allocation */
bNodeType *ntype = MEM_cnew<bNodeType>("frame node type");
@ -502,7 +502,7 @@ void node_group_input_update(bNodeTree *ntree, bNode *node)
}
}
void register_node_type_group_input(void)
void register_node_type_group_input()
{
/* used for all tree types, needs dynamic allocation */
bNodeType *ntype = MEM_cnew<bNodeType>("node type");
@ -600,7 +600,7 @@ void node_group_output_update(bNodeTree *ntree, bNode *node)
}
}
void register_node_type_group_output(void)
void register_node_type_group_output()
{
/* used for all tree types, needs dynamic allocation */
bNodeType *ntype = MEM_cnew<bNodeType>("node type");

View File

@ -872,7 +872,7 @@ static bNodeSocketType *make_socket_type_material()
return socktype;
}
void register_standard_node_socket_types(void)
void register_standard_node_socket_types()
{
/* Draw callbacks are set in `drawnode.c` to avoid bad-level calls. */