From ae52f58f6ff33327b134c8563f8c58ff036064d0 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 14 Nov 2017 15:05:05 +0200 Subject: [PATCH] Cppcheck. --HG-- branch : develop --- src/libs/vwidgets/vhighlighter.h | 2 +- src/libs/vwidgets/vplaintextedit.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/vwidgets/vhighlighter.h b/src/libs/vwidgets/vhighlighter.h index 778789547..b9603ec70 100644 --- a/src/libs/vwidgets/vhighlighter.h +++ b/src/libs/vwidgets/vhighlighter.h @@ -55,7 +55,7 @@ private: class VHighlighter : public QSyntaxHighlighter { public: - VHighlighter(QTextDocument *document); + explicit VHighlighter(QTextDocument *document); protected: virtual void highlightBlock(const QString &text); diff --git a/src/libs/vwidgets/vplaintextedit.h b/src/libs/vwidgets/vplaintextedit.h index 57b484d3c..d257bd4d5 100644 --- a/src/libs/vwidgets/vplaintextedit.h +++ b/src/libs/vwidgets/vplaintextedit.h @@ -35,7 +35,7 @@ class VPlainTextEdit : public QPlainTextEdit { Q_OBJECT public: - VPlainTextEdit(QWidget * parent = nullptr); + explicit VPlainTextEdit(QWidget * parent = nullptr); VPlainTextEdit(const QString & text, QWidget * parent = nullptr); virtual ~VPlainTextEdit();