Commit 5bdf2670 authored by Jan Möbius's avatar Jan Möbius

More cppcheck warnings

parent 8faae1cd
......@@ -77,7 +77,7 @@ class ConfigValue : public QObject {
public:
/// Constructor
ConfigValue (ElementInput *_input);
explicit ConfigValue (ElementInput *_input);
/// Destructor
~ConfigValue ();
......
......@@ -76,7 +76,7 @@ class DynamicValue : public QObject {
public:
/// Constructor
DynamicValue (Input *_input);
explicit DynamicValue (Input *_input);
/// Destructor
~DynamicValue ();
......
......@@ -77,7 +77,7 @@ class Context {
public:
/// Constructor
Context (QScriptEngine *_engine);
explicit Context (QScriptEngine *_engine);
/// Destructor
~Context ();
......
......@@ -76,7 +76,7 @@ class Input : public InOut {
};
/// Constructor
Input (Element *_f);
explicit Input (Element *_f);
/// Current state
unsigned int state ();
......@@ -96,4 +96,4 @@ class Input : public InOut {
}
//=============================================================================
#endif
\ No newline at end of file
#endif
......@@ -68,7 +68,7 @@ class Output : public InOut {
public:
/// Constructor
Output (Element *_f);
explicit Output (Element *_f);
friend class Context;
};
......
......@@ -77,7 +77,7 @@ class Button : public Text
public:
/// Constructor
Button (QGraphicsItem *_parent = 0);
explicit Button (QGraphicsItem *_parent = 0);
Button (const QString &_text, QGraphicsItem *_parent = 0);
/// Destructor
......
......@@ -73,7 +73,7 @@ class ElementArea : public QObject, public QGraphicsItem
public:
/// Constructor
ElementArea (GraphicsScene *_scene);
explicit ElementArea (GraphicsScene *_scene);
/// Destructor
~ElementArea ();
......
......@@ -75,7 +75,7 @@ class FunctionDisplay : public QGraphicsWidget
public:
/// Constructor
FunctionDisplay (GraphicsScene *_scene);
explicit FunctionDisplay (GraphicsScene *_scene);
/// Destructor
~FunctionDisplay ();
......
......@@ -70,7 +70,7 @@ class GraphicsView : public QGraphicsView
public:
/// Constructor
GraphicsView(QWidget* _parent = NULL);
explicit GraphicsView(QWidget* _parent = NULL);
signals:
/// Inform the scene about size changes
......
......@@ -77,7 +77,7 @@ class SceneTools : public QGraphicsWidget
public:
/// Constructor
SceneTools (GraphicsScene *_scene);
explicit SceneTools (GraphicsScene *_scene);
/// Destructor
~SceneTools ();
......
......@@ -78,7 +78,7 @@ class Text : public QObject, public QGraphicsSimpleTextItem, public QGraphicsLay
public:
/// Constructor
Text (QGraphicsItem *_parent = 0);
explicit Text (QGraphicsItem *_parent = 0);
Text (const QString &_text, QGraphicsItem *_parent = 0);
/// Destrucotr
......
......@@ -71,7 +71,7 @@ class WayFind {
public:
/// Constructor
WayFind (GraphicsScene *_scene);
explicit WayFind (GraphicsScene *_scene);
/// Destructor
~WayFind ();
......@@ -91,7 +91,7 @@ class WayFind {
Horizontal
};
Node (unsigned int _counter);
explicit Node (unsigned int _counter);
~Node ();
public:
......
......@@ -67,7 +67,7 @@ class TreeModel : public QAbstractItemModel
public:
/// Constructor
TreeModel(QObject *_parent = 0);
explicit TreeModel(QObject *_parent = 0);
/// Destructor
~TreeModel();
......
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