diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-05-01 10:34:40 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-05-01 10:34:40 +0400 |
commit | 22c2aef77c63cf4cbe19a1c5a8ea4671ef6440bd (patch) | |
tree | 4b4502c3111590f44429da4b55c3e22920c029e6 /source/blender/editors/armature | |
parent | 81dabf76d7392c221decd339945ff3d5678a6023 (diff) |
replace inline string searches with BLI_findstring(), strcmp(..., ""), with char comparisons.
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r-- | source/blender/editors/armature/editarmature.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/armature/editarmature.c b/source/blender/editors/armature/editarmature.c index f0f33ec3258..f4e9c7c5d3e 100644 --- a/source/blender/editors/armature/editarmature.c +++ b/source/blender/editors/armature/editarmature.c @@ -804,7 +804,7 @@ static void joined_armature_fix_links(Object *tarArm, Object *srcArm, bPoseChann for (ct= targets.first; ct; ct= ct->next) { if (ct->tar == srcArm) { - if (strcmp(ct->subtarget, "")==0) { + if (ct->subtarget[0] == '\0') { ct->tar = tarArm; } else if (strcmp(ct->subtarget, pchan->name)==0) { @@ -851,7 +851,7 @@ static void joined_armature_fix_links(Object *tarArm, Object *srcArm, bPoseChann for (ct= targets.first; ct; ct= ct->next) { if (ct->tar == srcArm) { - if (strcmp(ct->subtarget, "")==0) { + if (ct->subtarget[0] == '\0') { ct->tar = tarArm; } else if (strcmp(ct->subtarget, pchan->name)==0) { |