Opened 3 years ago

Closed 2 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 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 (2)

comment:1 Changed 3 years ago by David Hampton

Description: modified (diff)

comment:2 Changed 2 years ago by David Hampton

Resolution: Fixed
Status: assignedclosed
Summary: C++11 code modernizationsC++11 code modernizations (v30)
Note: See TracTickets for help on using tickets.