Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify code for obtaining a list of video profiles.
Clang pointed out that the setup wizard video code is calling m_vdp->GetProfiles when it could directly call the static VideoDisplayProfile::GetProfiles function. Same for the GetDefaultProfileName function. Making those changes removes any need to create an instance of the VideoDisplayProfile class, so that code can all go away. This code was pointed out by clang-tidy's "static accesses through instance" check. https://clang.llvm.org/extra/clang-tidy/checks/readability-static-accessed-through-instance.html
- Loading branch information
1 parent
41b3e61
commit de18e7e
Showing
2 changed files
with
6 additions
and
11 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