summaryrefslogtreecommitdiffstats
path: root/src/gui/doc/snippets/textdocument-selections/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/doc/snippets/textdocument-selections/mainwindow.h')
-rw-r--r--src/gui/doc/snippets/textdocument-selections/mainwindow.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/doc/snippets/textdocument-selections/mainwindow.h b/src/gui/doc/snippets/textdocument-selections/mainwindow.h
index 7b75b13e82a..8327a558772 100644
--- a/src/gui/doc/snippets/textdocument-selections/mainwindow.h
+++ b/src/gui/doc/snippets/textdocument-selections/mainwindow.h
@@ -77,12 +77,12 @@ public slots:
void updateMenus();
private:
- QAction *cutAction;
- QAction *copyAction;
- QAction *pasteAction;
+ QAction *cutAction = nullptr;
+ QAction *copyAction = nullptr;
+ QAction *pasteAction = nullptr;
QString currentFile;
- QTextEdit *editor;
- QTextDocument *document;
+ QTextEdit *editor = nullptr;
+ QTextDocument *document = nullptr;
QTextDocumentFragment selection;
};