Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tidy: Return braced initializer instead of creating object just for r…
…eturn. The clang-tidy "return braced initializer list" check pointed out two places where explicitly creating an object and then immediately returning it to the caller could be replaced by just returning a braces initializer for the object. This eliminates the duplication of the type information in the function. Changes made by the clang-tidy program. https://clang.llvm.org/extra/clang-tidy/checks/modernize-return-braced-init-list.html
- Loading branch information
1 parent
ede2aa8
commit 6f24067
Showing
5 changed files
with
12 additions
and
12 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