Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tidy: Replace x.length() in a boolean context with !x.isEmpty().
These instances were pointed out by clang-tidy's "implicit boolean conversion" check. Similar to the replacement of x.size() with !x.empty(), replacing x.length() with !x.empty() also seems like it would be more efficient and also shows clearer intent. https://clang.llvm.org/extra/clang-tidy/checks/readability-container-size-empty.html
- Loading branch information
1 parent
be7a6d9
commit 5a931b7
Showing
5 changed files
with
9 additions
and
9 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
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
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