Commit e554ccc9 authored by Jan Möbius's avatar Jan Möbius
Browse files

More cppcheck warnings

parent 9a313dc7
...@@ -73,7 +73,7 @@ class OMPropertyModelSubclass: public SingleObjectPropertyModel ...@@ -73,7 +73,7 @@ class OMPropertyModelSubclass: public SingleObjectPropertyModel
{ {
Q_OBJECT Q_OBJECT
public: public:
OMPropertyModelSubclass(QObject *parent = 0) explicit OMPropertyModelSubclass(QObject *parent = 0)
: SingleObjectPropertyModel(parent) : SingleObjectPropertyModel(parent)
{ {
} }
......
...@@ -139,7 +139,7 @@ class PropertyNameListModel: public QAbstractListModel { ...@@ -139,7 +139,7 @@ class PropertyNameListModel: public QAbstractListModel {
}; };
public: public:
PropertyNameListModel(QObject *parent = 0); explicit PropertyNameListModel(QObject *parent = 0);
virtual ~PropertyNameListModel(); virtual ~PropertyNameListModel();
virtual int rowCount(const QModelIndex & parent = QModelIndex()) const; virtual int rowCount(const QModelIndex & parent = QModelIndex()) const;
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
class VizException : public std::logic_error { class VizException : public std::logic_error {
public: public:
VizException(const std::string &msg) : std::logic_error(msg) {} explicit VizException(const std::string &msg) : std::logic_error(msg) {}
}; };
...@@ -94,7 +94,7 @@ public: ...@@ -94,7 +94,7 @@ public:
* *
* @param _propertyInfo Information about the property this visualizer should visualize. * @param _propertyInfo Information about the property this visualizer should visualize.
*/ */
PropertyVisualizer(PropertyInfo _propertyInfo) explicit PropertyVisualizer(PropertyInfo _propertyInfo)
: :
propertyInfo(_propertyInfo), propertyInfo(_propertyInfo),
widget(0) widget(0)
......
...@@ -178,7 +178,7 @@ class NewNameMessageBox: public QMessageBox ...@@ -178,7 +178,7 @@ class NewNameMessageBox: public QMessageBox
Q_OBJECT Q_OBJECT
public: public:
NewNameMessageBox(QString propName); explicit NewNameMessageBox(QString propName);
private slots: private slots:
void slotReplace() { replace = true; } void slotReplace() { replace = true; }
......
Supports Markdown
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