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