Opened 6 weeks ago

Last modified 5 weeks ago

#13344 assigned Developer Task

C++11 code modernizations

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 David Hampton)

Update MythTV to take advangate of features included in the C++11 standard.

  1. Use the boolean literals true/false instead casting the numbers 1/0 from integer to boolean.
  2. Use the nullptr keyword instead of NULL/0.
  3. Use the 'override' keyword on all subclassed functions that override a parent/ancestor function.
  4. Convert from std::random_shuffle to std::shuffle. The former has been removed from the C++17 standard.
  5. Use the =default declaration where possible, which allows the compiler to make additional optimizations.
  6. Use the =delete declaration for unimplemented private functions.
  7. Use the new list emplace_back function to eliminate creating temporary objects.
  8. Remove the OVERRIDE/FINAL macros that are no longer needed.
  9. Replace deprecated C header files with their C++ equivalents.
  10. Remove unused instances of the 'using' keyword.
  11. Update some functions with default member initialization.

Change History (1)

comment:1 Changed 5 weeks ago by David Hampton

Description: modified (diff)
Note: See TracTickets for help on using tickets.