IDocument: Use member initialization

Change-Id: If4f34fa2e7bd46861db1b63bcf5362eb2ab8e1e2
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Eike Ziller
2016-05-30 14:51:09 +02:00
committed by Eike Ziller
parent 0b5c780106
commit 74558e8561

View File

@@ -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