Opened 7 years ago
Closed 7 years ago
#13344 closed Developer Task (Fixed)
C++11 code modernizations (v30)
Reported by: | David Hampton | Owned by: | David Hampton |
---|---|---|---|
Priority: | major | Milestone: | 30.0 |
Component: | MythTV - General | Version: | Master Head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description (last modified by )
Update MythTV to take advangate of features included in the C++11 standard.
- Use the boolean literals true/false instead casting the numbers 1/0 from integer to boolean.
- Use the nullptr keyword instead of NULL/0.
- Use the 'override' keyword on all subclassed functions that override a parent/ancestor function.
- Convert from std::random_shuffle to std::shuffle. The former has been removed from the C++17 standard.
- Use the =default declaration where possible, which allows the compiler to make additional optimizations.
- Use the =delete declaration for unimplemented private functions.
- Use the new list emplace_back function to eliminate creating temporary objects.
- Remove the OVERRIDE/FINAL macros that are no longer needed.
- Replace deprecated C header files with their C++ equivalents.
- Remove unused instances of the 'using' keyword.
- Update some functions with default member initialization.
Change History (2)
Note:
See TracTickets
for help on using tickets.