diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-11-01 03:29:37 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-11-01 03:45:27 +0300 |
commit | ae87adc73a29efab1cde5c9df20e99f73ac501c9 (patch) | |
tree | 94a3c1426cb9fc53a010e34b4ce18380eb984f8d /source/blender/blenkernel | |
parent | 4a013e5dd5cf00e531c39726c506ed9a49d252e8 (diff) |
Font cleanup: use ELEM
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/font.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/font.c b/source/blender/blenkernel/intern/font.c index 053a9b964a1..f6e1fabc6c0 100644 --- a/source/blender/blenkernel/intern/font.c +++ b/source/blender/blenkernel/intern/font.c @@ -1232,13 +1232,13 @@ makebreak: } } - if (mode == FO_CURSUP || mode == FO_CURSDOWN || mode == FO_PAGEUP || mode == FO_PAGEDOWN) { + if (ELEM(mode, FO_CURSUP, FO_CURSDOWN, FO_PAGEUP, FO_PAGEDOWN)) { ct = &chartransdata[ef->pos]; - if ((mode == FO_CURSUP || mode == FO_PAGEUP) && ct->linenr == 0) { + if (ELEM(mode, FO_CURSUP, FO_PAGEUP) && ct->linenr == 0) { /* pass */ } - else if ((mode == FO_CURSDOWN || mode == FO_PAGEDOWN) && ct->linenr == lnr) { + else if (ELEM(mode, FO_CURSDOWN, FO_PAGEDOWN) && ct->linenr == lnr) { /* pass */ } else { |