Cleanup: use ELEM macro

This commit is contained in:
2020-11-06 12:30:59 +11:00
parent 7cb20d841d
commit aa3a4973a3
158 changed files with 280 additions and 298 deletions

View File

@@ -1767,7 +1767,7 @@ static char *wm_clipboard_text_get_ex(bool selection, int *r_len, bool firstline
if (firstline) {
/* will return an over-alloc'ed value in the case there are newlines */
for (char *p = buf; *p; p++) {
if ((*p != '\n') && (*p != '\r')) {
if (!ELEM(*p, '\n', '\r')) {
*(p2++) = *p;
}
else {