Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tidy: Use the auto type specifier instead of duplicating types. (plug…
…ins) The clang-tidy "use auto" modernization checker pointed out a ton of places where a type specifier was duplicated, e.g. "Foo *var = new Foo();", where the code can be simplified by using the new "auto" keyword. The previous example will be updated to read "auto *var = new Foo();". This example looks trivial, but when "Foo" is a 25 character QMap or something even longer, it makes the code easier to read. All replacements made by clang-tidy with some manual reformatting. There are also two tweaks for places where a pointer was malloced with "sizeof(*ptr)" as the number of bytes of data. https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-auto.html
- Loading branch information
1 parent
754a2f4
commit 0c79cdb
Showing
33 changed files
with
232 additions
and
265 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
Oops, something went wrong.