Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tidy: Fix potential order-of-initialization problems.
A static value in mpegtables.cpp currently depends upon a static variable initialized in tspacket.cpp, but there is no guarantee of the order of initialization of the object files. Convert this value (and a couple of others) from a "static const" to a "static constexpr" so that the constant value can be put into the header file and avoid any order of initialization issues. https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines-interfaces-global-init.html
- Loading branch information
1 parent
33f6c3b
commit 4622377
Showing
3 changed files
with
8 additions
and
18 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