Cleanup: Use const arguments

This commit is contained in:
Hans Goudey 2021-11-18 11:03:18 -05:00
parent dd31b8bd50
commit 67b4eecac9
2 changed files with 7 additions and 4 deletions

View File

@ -4401,7 +4401,10 @@ void node_draw_link_bezier(const bContext *C,
}
/* NOTE: this is used for fake links in groups too. */
void node_draw_link(const bContext *C, View2D *v2d, SpaceNode *snode, bNodeLink *link)
void node_draw_link(const bContext *C,
const View2D *v2d,
const SpaceNode *snode,
const bNodeLink *link)
{
int th_col1 = TH_WIRE_INNER, th_col2 = TH_WIRE_INNER, th_col3 = TH_WIRE;

View File

@ -187,9 +187,9 @@ void nodelink_batch_start(struct SpaceNode *snode);
void nodelink_batch_end(struct SpaceNode *snode);
void node_draw_link(const struct bContext *C,
struct View2D *v2d,
struct SpaceNode *snode,
struct bNodeLink *link);
const struct View2D *v2d,
const struct SpaceNode *snode,
const struct bNodeLink *link);
void node_draw_link_bezier(const struct bContext *C,
const struct View2D *v2d,
const struct SpaceNode *snode,