Skip to content

Commit

Permalink
Fix spammy translations.h clang-tidy error. (#50783)
Browse files Browse the repository at this point in the history
  • Loading branch information
akrieger authored Aug 15, 2021
1 parent 2f6beb7 commit ee0b7b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/translations.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ inline std::string _translate_internal( const std::string &msg )
}
} // namespace detail

#define ngettext(STRING1, STRING2, COUNT) (COUNT < 2 ? _(STRING1) : _(STRING2))
#define ngettext(STRING1, STRING2, COUNT) ((COUNT) < 2 ? _(STRING1) : _(STRING2))
#define pgettext(STRING1, STRING2) _(STRING2)
#define npgettext(STRING0, STRING1, STRING2, COUNT) ngettext(STRING1, STRING2, COUNT)

Expand Down

0 comments on commit ee0b7b6

Please sign in to comment.