Gui: modernize C++: use default member init

This commit is contained in:
wmayer
2023-08-23 16:29:19 +02:00
committed by wwmayer
parent ee0fad4c90
commit 5a153e50ff
79 changed files with 220 additions and 325 deletions

View File

@@ -170,11 +170,7 @@ public:
// Pimpl class
struct ApplicationP
{
explicit ApplicationP(bool GUIenabled) :
activeDocument(nullptr),
editDocument(nullptr),
isClosing(false),
startingUp(true)
explicit ApplicationP(bool GUIenabled)
{
// create the macro manager
if (GUIenabled)
@@ -195,14 +191,14 @@ struct ApplicationP
/// list of all handled documents
std::map<const App::Document*, Gui::Document*> documents;
/// Active document
Gui::Document* activeDocument;
Gui::Document* editDocument;
Gui::Document* activeDocument{nullptr};
Gui::Document* editDocument{nullptr};
MacroManager* macroMngr;
PreferencePackManager* prefPackManager;
/// List of all registered views
std::list<Gui::BaseView*> passive;
bool isClosing;
bool startingUp;
bool isClosing{false};
bool startingUp{true};
/// Handles all commands
CommandManager commandManager;
ViewProviderMap viewproviderMap;