From b55a313b3d89090c40312ec1dcf4d3da5109bfe2 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Wed, 2 Sep 2020 14:31:30 +0200 Subject: [PATCH] TextEditor: make TextEditorWidget constructor explicit Change-Id: I0b2e5b8c09706697efa4c2fbc3bc7483d02f68d3 Reviewed-by: Alessandro Portale --- src/plugins/texteditor/texteditor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/texteditor/texteditor.h b/src/plugins/texteditor/texteditor.h index e00750f1042..05a0183e574 100644 --- a/src/plugins/texteditor/texteditor.h +++ b/src/plugins/texteditor/texteditor.h @@ -179,7 +179,7 @@ class TEXTEDITOR_EXPORT TextEditorWidget : public QPlainTextEdit Q_PROPERTY(int verticalBlockSelectionLastColumn READ verticalBlockSelectionLastColumn) public: - TextEditorWidget(QWidget *parent = nullptr); + explicit TextEditorWidget(QWidget *parent = nullptr); ~TextEditorWidget() override; void setTextDocument(const QSharedPointer &doc);