[mythtv-commits] Ticket #13344: C++11 code modernizations
MythTV
noreply at mythtv.org
Wed Oct 31 17:44:50 UTC 2018
#13344: C++11 code modernizations
----------------------------------+---------------------------
Reporter: David Hampton | Owner: David Hampton
Type: Developer Task | Status: assigned
Priority: major | Milestone: 30.0
Component: MythTV - General | Version: Master Head
Severity: medium | Keywords:
Ticket locked: 0 |
----------------------------------+---------------------------
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.
1. Use the nullptr keyword instead of NULL/0.
1. Use the 'override' keyword on all subclassed functions that override a
parent/ancestor function.
1. Convert from std::random_shuffle to std::shuffle. The former has been
removed from the C++17 standard.
1. Use the =default declaration where possible, which allows the compiler
to make additional optimizations.
1. Use the =delete declaration for unimplemented private functions.
1. Use the new list emplace_back function to eliminate creating temporary
objects.
1. Remove the OVERRIDE/FINAL macros that are no longer needed.
1. Replace deprecated C header files with their C++ equivalents.
1. Remove unused instances of the 'using' keyword.
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13344>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list