Code cleanup: use bool for static methods
[blender.git] / source / blender / editors / space_node / node_buttons.c
index 53b373e728e553c48896e846d200dc4168135a72..035287c0411cf17333ef363aee68b5185d385cd4 100644 (file)
@@ -100,7 +100,7 @@ static int node_tree_interface_poll(const bContext *C, PanelType *UNUSED(pt))
        return (snode && snode->edittree && (snode->edittree->inputs.first || snode->edittree->outputs.first));
 }
 
-static int node_tree_find_active_socket(bNodeTree *ntree, bNodeSocket **r_sock, int *r_in_out)
+static bool node_tree_find_active_socket(bNodeTree *ntree, bNodeSocket **r_sock, int *r_in_out)
 {
        bNodeSocket *sock;
        for (sock = ntree->inputs.first; sock; sock = sock->next) {