diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-26 06:58:49 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-26 07:12:38 +0300 |
commit | 6275541df7e02c40e8c8650bba3104b5df8d34ef (patch) | |
tree | 042b852b57a56c9423eb58bc1b7afe1c7c2188fa /source/blender/editors/render | |
parent | 96d88e56143b1972d9b0cd6c53c6e0cda9b62269 (diff) |
Cleanup: use ELEM/STR_ELEM/STREQ macros
Diffstat (limited to 'source/blender/editors/render')
-rw-r--r-- | source/blender/editors/render/render_shading.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/render/render_shading.cc b/source/blender/editors/render/render_shading.cc index ba74541be73..6802798adb3 100644 --- a/source/blender/editors/render/render_shading.cc +++ b/source/blender/editors/render/render_shading.cc @@ -1131,7 +1131,7 @@ static int view_layer_add_lightgroup_exec(bContext *C, wmOperator *op) /* Ensure that there are no dots in the name. */ BLI_str_replace_char(name, '.', '_'); LISTBASE_FOREACH (ViewLayerLightgroup *, lightgroup, &view_layer->lightgroups) { - if (strcmp(lightgroup->name, name) == 0) { + if (STREQ(lightgroup->name, name)) { return OPERATOR_CANCELLED; } } |