Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STYLE: Replace unsafe
(T)x
and T(x)
casts with T{x}
in Common/src
Replaced C-style casts and function-style casts, `(T)x` and `T(x)`, with the corresponding but safer braced-initialization syntax, `T{ x }`, in "Common/src", in cases where `x` is a compile-time constant integer. Detected by LLVM 14.0.0 clang-tidy option `google-readability-casting`: https://clang.llvm.org/extra/clang-tidy/checks/google-readability-casting.html Follow-up to: pull request #3342 commit 2fa80e8 "STYLE: Avoid old, C-style cast", by Lee Newberg
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters