Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Infrastructure: move away from constructor initialisation lists - par…
…t 2 (#5937) For classes from "T2*" to "TM*" (approximately)... I have steered away from using `{}` to initialise simple, POD data types in favour of explicitly stating what their default values are. Also: * remove unused `(QColor) TAction::mButtonColor` and it's associated getter and setter. Also remove the save code from the `XMLexport` class and ensure it is skipped and silently discarded in the load code in `XMLimport`. * Make `private` some members of the `TFlipButton` class that probably weren't ever intended to be `public` * Remove unneeded named argument for `lua_State*` type in many (but not all) function declarations in `TLuaInterpreter.h` file - they aren't needed and whether an `L` was present or not seems to entirely down to the whim of the individual coder of each function...! * Rejig some of the initiliasations in the `TLuaInterpreter` class * Refactor a chunk of code n the `TMap` class used to (re)initialise the 16 colours user settable from the preferences dialogue to a method: `(void) TMap::restore16ColorSet()` - so that it can be used in three other places as well as the constuctor. * Remove unused `(int) T2DMap::gzoom`. * Add missing `TMediaData.h` file to qmake project file. Note: `QPointer<T>` instances do NOT need initialisation, they are automagically instantiated with a `nullptr` value. Revised to change code to fit in with PR #6133 There were some pre-Qt 5.14.0 version checks that are no longer relevant. Signed-off-by: Stephen Lyons <slysven@virginmedia.com> Co-authored-by: Vadim Peretokin <vperetokin@gmail.com>
- Loading branch information
Showing
48 changed files
with
762 additions
and
953 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
Oops, something went wrong.