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 ...@@ -73,7 +73,7 @@ class FunctionList : public QListWidget
void mouseMoveEvent(QMouseEvent *event); void mouseMoveEvent(QMouseEvent *event);
public: public:
FunctionList(QWidget *parent = 0); explicit FunctionList(QWidget *parent = 0);
void filter(QString _filter); void filter(QString _filter);
void reset(); void reset();
......
...@@ -66,7 +66,7 @@ class CodeEditorWidget : public QPlainTextEdit ...@@ -66,7 +66,7 @@ class CodeEditorWidget : public QPlainTextEdit
Q_OBJECT Q_OBJECT
public: public:
CodeEditorWidget(QWidget *parent = 0); explicit CodeEditorWidget(QWidget *parent = 0);
void lineNumberAreaPaintEvent(QPaintEvent *event); void lineNumberAreaPaintEvent(QPaintEvent *event);
int lineNumberAreaWidth(); int lineNumberAreaWidth();
...@@ -90,7 +90,7 @@ class CodeEditorWidget : public QPlainTextEdit ...@@ -90,7 +90,7 @@ class CodeEditorWidget : public QPlainTextEdit
class LineNumberArea : public QWidget class LineNumberArea : public QWidget
{ {
public: public:
LineNumberArea(CodeEditorWidget *editor) : QWidget(editor) { explicit LineNumberArea(CodeEditorWidget *editor) : QWidget(editor) {
codeEditor = editor; codeEditor = editor;
} }
......
...@@ -62,8 +62,8 @@ class Highlighter : public QSyntaxHighlighter ...@@ -62,8 +62,8 @@ class Highlighter : public QSyntaxHighlighter
Q_OBJECT Q_OBJECT
public: public:
Highlighter( QTextDocument* parent = 0); explicit Highlighter( QTextDocument* parent = 0);
Highlighter( QTextEdit* parent); explicit Highlighter( QTextEdit* parent);
/// Updates the highlighter with the current rule set defined in the patterns /// Updates the highlighter with the current rule set defined in the patterns
void update(); void update();
......
...@@ -60,6 +60,6 @@ class ScriptWidget : public QMainWindow, public Ui::ScriptWidget ...@@ -60,6 +60,6 @@ class ScriptWidget : public QMainWindow, public Ui::ScriptWidget
Q_OBJECT Q_OBJECT
public: 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