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/blenkernel/intern/action.c | |
parent | 81dabf76d7392c221decd339945ff3d5678a6023 (diff) |
replace inline string searches with BLI_findstring(), strcmp(..., ""), with char comparisons.
Diffstat (limited to 'source/blender/blenkernel/intern/action.c')
-rw-r--r-- | source/blender/blenkernel/intern/action.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/action.c b/source/blender/blenkernel/intern/action.c index 058227e7cc3..5b49d9a9841 100644 --- a/source/blender/blenkernel/intern/action.c +++ b/source/blender/blenkernel/intern/action.c @@ -420,11 +420,11 @@ bPoseChannel *verify_pose_channel(bPose *pose, const char *name) return NULL; /* See if this channel exists */ - for (chan=pose->chanbase.first; chan; chan=chan->next) { - if (!strcmp (name, chan->name)) - return chan; + chan= BLI_findstring(&pose->chanbase, name, offsetof(bPoseChannel, name)); + if(chan) { + return chan; } - + /* If not, create it and add it */ chan = MEM_callocN(sizeof(bPoseChannel), "verifyPoseChannel"); |