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 <ideasman42@gmail.com>2013-03-18 22:25:05 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-18 22:25:05 +0400
commit01e9dae3dc6c7de00e441a8b505debc6df830520 (patch)
tree917d578202f35f095c98506567a62c8240c803e6 /source/blender/editors/space_node/node_relationships.c
parent57f69f2f180a988f274d979b1e5f2ad17e9cb77a (diff)
code cleanup
Diffstat (limited to 'source/blender/editors/space_node/node_relationships.c')
-rw-r--r--source/blender/editors/space_node/node_relationships.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_node/node_relationships.c b/source/blender/editors/space_node/node_relationships.c
index d95487bb24e..8ff964aa932 100644
--- a/source/blender/editors/space_node/node_relationships.c
+++ b/source/blender/editors/space_node/node_relationships.c
@@ -108,7 +108,7 @@ static bNodeSocket *best_socket_output(bNodeTree *ntree, bNode *node, bNodeSocke
/* check for same types */
if (sock->type == sock_target->type) {
- if (strcmp(sock->name, sock_target->name) == 0)
+ if (STREQ(sock->name, sock_target->name))
return sock;
}
}
@@ -547,7 +547,7 @@ static int node_link_modal(bContext *C, wmOperator *op, const wmEvent *event)
{
/* place the node at the mouse pointer */
- float sockx = 42.f + 3*HIDDEN_RAD; /* XXX totally arbitrary initial hidden node size ... */
+ float sockx = 42.0f + 3 * HIDDEN_RAD; /* XXX totally arbitrary initial hidden node size ... */
float socky = -HIDDEN_RAD;
ionode->locx = snode->cursor[0] - sockx;