forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user