Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add final qualifiers where applicable.
We have a lot of classes with virtual functions but no virtual destructor, mostly under render/. While this is not a problem due to how our hierarchy is structured, some versions of clang warn about this on the delete statement inside shared_ptr. We could add a virtual destructor, but adding final qualifiers expresses intent better, is generally more efficient (since it allows devirtualizing most virtual calls in render/), and solves the potential problem clang is warning us about.
- Loading branch information
1 parent
4f52167
commit fb138f4
Showing
6 changed files
with
36 additions
and
36 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
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