Commit 74558e85 authored by Eike Ziller's avatar Eike Ziller Committed by Eike Ziller

IDocument: Use member initialization

Change-Id: If4f34fa2e7bd46861db1b63bcf5362eb2ab8e1e2
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
Reviewed-by: default avatarDavid Schulz <david.schulz@theqtcompany.com>
parent 0b5c7801
......@@ -63,14 +63,6 @@ namespace Internal {
class IDocumentPrivate
{
public:
IDocumentPrivate() :
infoBar(0),
temporary(false),
hasWriteWarning(false),
restored(false)
{
}
~IDocumentPrivate()
{
delete infoBar;
......@@ -81,11 +73,11 @@ public:
QString preferredDisplayName;
QString uniqueDisplayName;
QString autoSaveName;
InfoBar *infoBar;
InfoBar *infoBar = nullptr;
Id id;
bool temporary;
bool hasWriteWarning;
bool restored;
bool temporary = false;
bool hasWriteWarning = false;
bool restored = false;
};
} // namespace Internal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment