summaryrefslogtreecommitdiffstats
path: root/src/gui/doc/snippets/textdocument-tables/mainwindow.h
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2020-08-29 14:10:22 +0200
committerPaul Wicking <paul.wicking@qt.io>2020-09-01 06:13:08 +0200
commitb16b7d887980fbdbb2e12867e2d14b81c0361654 (patch)
treec751cf195a70c02ddaee4c57af50cda60cbdebff /src/gui/doc/snippets/textdocument-tables/mainwindow.h
parente81383eb0994a37b9489a2aebd0459e161dbeed2 (diff)
Doc: Compile textdocument-tables snippets
Minor code cleanup in passing. Task-number: QTBUG-81486 Change-Id: I23f8b3a22f627050582c69c81e5e0b85b5e45768 Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/gui/doc/snippets/textdocument-tables/mainwindow.h')
-rw-r--r--src/gui/doc/snippets/textdocument-tables/mainwindow.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/doc/snippets/textdocument-tables/mainwindow.h b/src/gui/doc/snippets/textdocument-tables/mainwindow.h
index dc26cf3650..b0ff5c1b91 100644
--- a/src/gui/doc/snippets/textdocument-tables/mainwindow.h
+++ b/src/gui/doc/snippets/textdocument-tables/mainwindow.h
@@ -47,7 +47,6 @@
** $QT_END_LICENSE$
**
****************************************************************************/
-
#ifndef WINDOW_H
#define WINDOW_H
@@ -69,7 +68,7 @@ public slots:
private:
bool writeXml(const QString &fileName);
- QTextEdit *editor;
+ QTextEdit *editor = nullptr;
};
#endif