Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start using C++ in-place member initialization.
We should make good use of in-place member initialization. Many new classes have constructors that effectively do nothing but default-initialize POD members, and when adding new members, it is very easy to miss initializing them. With in-place initialization, the code is more compact, the diffs are nicer, and it's harder to miss them. This commit only converts render/ and platform/ to use in-place member initialization, since there was a bug in CairoRenderer, but we should convert the entire codebase.
- Loading branch information
1 parent
501a482
commit c6aae4c
Showing
2 changed files
with
28 additions
and
34 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