From 8fb00cb21aafad4e02e8d380fc4ed3d3409501d3 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Wed, 15 Apr 2020 17:42:18 +0200 Subject: djvu-text-page: Fix cppcheck [clarifyCalculation] warnings Fixes the warnings: backend/djvu/djvu-text-page.c:46:31: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] g_strjoin (delimit & 2 ? "\n" : ^ backend/djvu/djvu-text-page.c:47:28: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] delimit & 1 ? " " : NULL, ^ --- backend/djvu/djvu-text-page.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend') diff --git a/backend/djvu/djvu-text-page.c b/backend/djvu/djvu-text-page.c index 90bce25e..6cbf54e6 100644 --- a/backend/djvu/djvu-text-page.c +++ b/backend/djvu/djvu-text-page.c @@ -43,8 +43,8 @@ djvu_text_page_selection_process (DjvuTextPage *page, char *token_text = (char *) miniexp_to_str (miniexp_nth (5, p)); if (page->text) { char *new_text = - g_strjoin (delimit & 2 ? "\n" : - delimit & 1 ? " " : NULL, + g_strjoin ((delimit & 2) ? "\n" : + (delimit & 1) ? " " : NULL, page->text, token_text, NULL); g_free (page->text); -- cgit v1.2.1