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