From f3c402a6df0060dc4d0f3013c5d1fa31960dba7c Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Wed, 10 Jun 2020 07:22:27 +0200 Subject: Doc snippets: Use nullptr instead of 0 literal Also mark constructors explicit, where applicable. Pick-to: 5.15 Fixes: QTBUG-84859 Change-Id: I145d366d854fd6b4373bcc23d0b880d6361d9014 Reviewed-by: Marc Mutz --- src/gui/doc/snippets/textdocument-imagedrop/textedit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/doc/snippets/textdocument-imagedrop/textedit.h') diff --git a/src/gui/doc/snippets/textdocument-imagedrop/textedit.h b/src/gui/doc/snippets/textdocument-imagedrop/textedit.h index 3f570884ba5..5db7dd0ad7d 100644 --- a/src/gui/doc/snippets/textdocument-imagedrop/textedit.h +++ b/src/gui/doc/snippets/textdocument-imagedrop/textedit.h @@ -58,7 +58,7 @@ class TextEdit : public QTextEdit Q_OBJECT public: - TextEdit(QWidget *parent=0); + explicit TextEdit(QWidget *parent = nullptr); bool canInsertFromMimeData( const QMimeData *source ) const override; void insertFromMimeData( const QMimeData *source ) override; }; -- cgit v1.2.3