mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
refactor: clang-tidy in libtransmission (#2578)
* chore: enable cppcoreguidelines-slicing warning * chore: enable readability-named-parameter warning * chore: enable bugprone-reserved-identifier check * chore: enable bugprone-not-null-terminated-result check * chore: enable bugprone-sizeof-expression check * chore: enable bugprone-incorrect-roundings check * chore: enable misc-misplaced-const check * chore: enable bugprone-suspicious-include check * chore: enable bugprone-signed-char-misuse check * chore: enable modernize-raw-string-literal check * chore: enable readability-static-accessed-through-instance check * chore: enable readability-implicit-bool-conversion check * fixup! Merge branch 'main' into refactor/clang-tidy
This commit is contained in:
@@ -571,7 +571,7 @@ static void jsonStringFunc(tr_variant const* val, void* vdata)
|
||||
break;
|
||||
|
||||
default:
|
||||
if (isprint((unsigned char)sv.front()))
|
||||
if (isprint((unsigned char)sv.front()) != 0)
|
||||
{
|
||||
*outwalk++ = sv.front();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user