Commit 5662057c authored by Jan Möbius's avatar Jan Möbius

More cppcheck warnings

parent 2a5bcae8
......@@ -73,7 +73,7 @@ class FunctionList : public QListWidget
void mouseMoveEvent(QMouseEvent *event);
public:
FunctionList(QWidget *parent = 0);
explicit FunctionList(QWidget *parent = 0);
void filter(QString _filter);
void reset();
......
......@@ -66,7 +66,7 @@ class CodeEditorWidget : public QPlainTextEdit
Q_OBJECT
public:
CodeEditorWidget(QWidget *parent = 0);
explicit CodeEditorWidget(QWidget *parent = 0);
void lineNumberAreaPaintEvent(QPaintEvent *event);
int lineNumberAreaWidth();
......@@ -90,7 +90,7 @@ class CodeEditorWidget : public QPlainTextEdit
class LineNumberArea : public QWidget
{
public:
LineNumberArea(CodeEditorWidget *editor) : QWidget(editor) {
explicit LineNumberArea(CodeEditorWidget *editor) : QWidget(editor) {
codeEditor = editor;
}
......
......@@ -62,8 +62,8 @@ class Highlighter : public QSyntaxHighlighter
Q_OBJECT
public:
Highlighter( QTextDocument* parent = 0);
Highlighter( QTextEdit* parent);
explicit Highlighter( QTextDocument* parent = 0);
explicit Highlighter( QTextEdit* parent);
/// Updates the highlighter with the current rule set defined in the patterns
void update();
......
......@@ -60,6 +60,6 @@ class ScriptWidget : public QMainWindow, public Ui::ScriptWidget
Q_OBJECT
public:
ScriptWidget(QWidget *parent = 0);
explicit ScriptWidget(QWidget *parent = 0);
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment