Commit d7b7b413 authored by Jan Möbius's avatar Jan Möbius

Silence some cppcheck warnings in propertyvis

parent 46c2dd2a
......@@ -66,7 +66,7 @@ class PropertyNameListModel: public QAbstractListModel {
class TypeInfoWrapper {
public:
TypeInfoWrapper(const std::type_info & ti, const char *friendlyName) : ti(&ti), friendlyName(friendlyName) {}
TypeInfoWrapper(const std::type_info & ti) : ti(&ti),friendlyName("") {}
explicit TypeInfoWrapper(const std::type_info & ti) : ti(&ti),friendlyName("") {}
operator const std::type_info *() const { return ti; }
operator const std::type_info &() const { return *ti; }
......
......@@ -87,7 +87,7 @@ public:
virtual void pickModeChanged(const std::string& _mode) {}
virtual void mouseEvent(QMouseEvent* _event) {}
SingleObjectPropertyModel(QObject *parent = 0);
explicit SingleObjectPropertyModel(QObject *parent = 0);
virtual ~SingleObjectPropertyModel();
virtual int rowCount(const QModelIndex & parent = QModelIndex()) const;
......
......@@ -55,7 +55,7 @@ template <typename MeshT>
class OMPropertyVisualizer: public PropertyVisualizer{
public:
OMPropertyVisualizer(MeshT* _mesh, int objectID, PropertyInfo _propertyInfo)
OMPropertyVisualizer(MeshT* _mesh, int objectID, const PropertyInfo& _propertyInfo)
: PropertyVisualizer(_propertyInfo),
mesh(_mesh),
mObjectID(objectID)
......
......@@ -88,7 +88,7 @@ public:
*
* @param _propertyInfo Information about the property this visualizer should visualize.
*/
explicit PropertyVisualizer(PropertyInfo _propertyInfo)
explicit PropertyVisualizer(const PropertyInfo& _propertyInfo)
:
propertyInfo(_propertyInfo),
widget(0)
......
......@@ -49,7 +49,7 @@ class PropertyVisToolbar : public QWidget, public Ui::PropertyVisToolbarBase
Q_OBJECT
public:
PropertyVisToolbar(QWidget * parent = 0);
explicit PropertyVisToolbar(QWidget * parent = 0);
virtual QSize minimumSizeHint() const;
......
......@@ -73,7 +73,7 @@
class TypeInfoWrapper {
public:
TypeInfoWrapper(const std::type_info & ti, const char *friendlyName) : ti(&ti), friendlyName(friendlyName) {}
TypeInfoWrapper(const std::type_info & ti) : ti(&ti),friendlyName("") {}
explicit TypeInfoWrapper(const std::type_info & ti) : ti(&ti),friendlyName("") {}
operator const std::type_info *() const { return ti; }
operator const std::type_info &() const { return *ti; }
......
......@@ -48,7 +48,7 @@ class BooleanWidget : public QWidget, public Ui::BooleanWidget
Q_OBJECT
public:
BooleanWidget(QWidget * parent = 0);
explicit BooleanWidget(QWidget * parent = 0);
signals:
void widgetShown();
......
......@@ -51,7 +51,7 @@ class DoubleWidget : public QWidget, public Ui::DoubleWidget
Q_OBJECT
public:
DoubleWidget(QWidget * parent = 0);
explicit DoubleWidget(QWidget * parent = 0);
/**
* @brief Builds a color coder according to UI settings
......
......@@ -53,7 +53,7 @@ class IntegerWidget : public QWidget, public Ui::IntegerWidget
Q_OBJECT
public:
IntegerWidget(QWidget * parent = 0);
explicit IntegerWidget(QWidget * parent = 0);
/**
* @brief Builds a color coder according to UI settings
......
......@@ -47,7 +47,7 @@ class LoadSaveWidget : public QWidget, public Ui::LoadSaveWidget
Q_OBJECT
public:
LoadSaveWidget(QWidget * parent = 0);
explicit LoadSaveWidget(QWidget * parent = 0);
signals:
void widgetShown();
......
......@@ -48,7 +48,7 @@ class PickWidget : public QWidget, public Ui::PickWidget
Q_OBJECT
public:
PickWidget(QWidget * parent = 0);
explicit PickWidget(QWidget * parent = 0);
signals:
void widgetShown();
......
......@@ -48,7 +48,7 @@ class SkinWeightsWidget : public QWidget, public Ui::SkinWeightsWidget
Q_OBJECT
public:
SkinWeightsWidget(QWidget * parent = 0);
explicit SkinWeightsWidget(QWidget * parent = 0);
signals:
void widgetShown();
......
......@@ -48,7 +48,7 @@ class VectorFieldDifferenceWidget : public QWidget, public Ui::VectorFieldDiffer
Q_OBJECT
public:
VectorFieldDifferenceWidget(QWidget * parent = 0);
explicit VectorFieldDifferenceWidget(QWidget * parent = 0);
signals:
void widgetShown();
......
......@@ -48,7 +48,7 @@ class VectorWidget : public QWidget, public Ui::VectorWidget
Q_OBJECT
public:
VectorWidget(QWidget * parent = 0);
explicit VectorWidget(QWidget * parent = 0);
signals:
void widgetShown();
......
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