diff options
author | Pablo Barciela <[email protected]> | 2020-04-15 17:42:18 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-04-23 13:37:39 +0200 |
commit | 8fb00cb21aafad4e02e8d380fc4ed3d3409501d3 (patch) | |
tree | 3981f3bfe55abb8afe18361bf4df2fcd06defbc9 /backend | |
parent | 0b51c98f08df605a87d264ae5a972b984238b3f4 (diff) | |
download | atril-8fb00cb21aafad4e02e8d380fc4ed3d3409501d3.tar.bz2 atril-8fb00cb21aafad4e02e8d380fc4ed3d3409501d3.tar.xz |
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,
^
Diffstat (limited to 'backend')
-rw-r--r-- | backend/djvu/djvu-text-page.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |