diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-11-06 04:30:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-11-06 04:32:54 +0300 |
commit | aa3a4973a30ff668a62447e18ac41f6c916b4a8b (patch) | |
tree | 1b24cc55995ba8b3d72aaabd9400a3e1e030d540 /source/blender/blentranslation | |
parent | 7cb20d841da16d0bffb63154403267500e9941f5 (diff) |
Cleanup: use ELEM macro
Diffstat (limited to 'source/blender/blentranslation')
-rw-r--r-- | source/blender/blentranslation/intern/blt_lang.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blentranslation/intern/blt_lang.c b/source/blender/blentranslation/intern/blt_lang.c index 078ded7e5c2..c0c362331e8 100644 --- a/source/blender/blentranslation/intern/blt_lang.c +++ b/source/blender/blentranslation/intern/blt_lang.c @@ -105,7 +105,7 @@ static void fill_locales(void) while (line) { int t; str = (char *)line->link; - if (str[0] == '#' || str[0] == '\0') { + if (ELEM(str[0], '#', '\0')) { line = line->next; continue; /* Comment or void... */ } @@ -130,7 +130,7 @@ static void fill_locales(void) char *loc, *sep1, *sep2, *sep3; str = (char *)line->link; - if (str[0] == '#' || str[0] == '\0') { + if (ELEM(str[0], '#', '\0')) { line = line->next; continue; } |