Commit 8e61266e authored by Jan Möbius's avatar Jan Möbius

Mark several constructors as explicit

parent fb128ffa
...@@ -124,7 +124,7 @@ struct DLLEXPORT PostProcessorOutput ...@@ -124,7 +124,7 @@ struct DLLEXPORT PostProcessorOutput
// in/out format descriptor // in/out format descriptor
struct PostProcessorFormatDesc struct PostProcessorFormatDesc
{ {
PostProcessorFormatDesc(bool _multisampled = false) : supportMultisampling_(_multisampled),outputFormat_(PostProcessorFormat_DONTCARE) explicit PostProcessorFormatDesc(bool _multisampled = false) : supportMultisampling_(_multisampled),outputFormat_(PostProcessorFormat_DONTCARE)
{} {}
......
...@@ -78,7 +78,7 @@ class DLLEXPORT WhatsThisGenerator: public QObject { ...@@ -78,7 +78,7 @@ class DLLEXPORT WhatsThisGenerator: public QObject {
const QString plugin_name_; const QString plugin_name_;
public: public:
WhatsThisGenerator(const QString &_plugin_name); explicit WhatsThisGenerator(const QString &_plugin_name);
QString generateLink(const QString &_ref = "", const QString &_site = "index.html") const; QString generateLink(const QString &_ref = "", const QString &_site = "index.html") const;
......
...@@ -175,7 +175,7 @@ class PreloadThread : public QThread ...@@ -175,7 +175,7 @@ class PreloadThread : public QThread
* *
* @param aggregator aggregator managing the different threads * @param aggregator aggregator managing the different threads
*/ */
PreloadThread(PreloadAggregator *aggregator) : aggregator_(aggregator) { explicit PreloadThread(PreloadAggregator *aggregator) : aggregator_(aggregator) {
} }
public: public:
......
...@@ -65,7 +65,7 @@ class SpinBoxEventFilter : public QObject { ...@@ -65,7 +65,7 @@ class SpinBoxEventFilter : public QObject {
Q_OBJECT Q_OBJECT
public: public:
SpinBoxEventFilter(QObject *parent = 0); explicit SpinBoxEventFilter(QObject *parent = 0);
virtual ~SpinBoxEventFilter(); virtual ~SpinBoxEventFilter();
bool eventFilter(QObject *object, QEvent *event); bool eventFilter(QObject *object, QEvent *event);
......
...@@ -105,7 +105,7 @@ class KeyGenWidget : public QMainWindow, public Ui::keyWindow ...@@ -105,7 +105,7 @@ class KeyGenWidget : public QMainWindow, public Ui::keyWindow
Q_OBJECT Q_OBJECT
public: public:
KeyGenWidget(QMainWindow *parent); explicit KeyGenWidget(QMainWindow *parent);
virtual ~KeyGenWidget(); virtual ~KeyGenWidget();
public slots: public slots:
......
...@@ -89,7 +89,7 @@ public: ...@@ -89,7 +89,7 @@ public:
* *
* @param _pluginName Name of the Plugin which uses this logger (Prepended to all Output) * @param _pluginName Name of the Plugin which uses this logger (Prepended to all Output)
*/ */
ScriptingWrapper(QString _pluginName); explicit ScriptingWrapper(QString _pluginName);
/// Destructor /// Destructor
~ScriptingWrapper(); ~ScriptingWrapper();
......
...@@ -61,7 +61,7 @@ class prototypeDataType : public QObject , public QScriptable ...@@ -61,7 +61,7 @@ class prototypeDataType : public QObject , public QScriptable
Q_OBJECT Q_OBJECT
public: public:
prototypeDataType(QObject *parent = 0); explicit prototypeDataType(QObject *parent = 0);
public Q_SLOTS: public Q_SLOTS:
QString toString() const; QString toString() const;
......
...@@ -61,7 +61,7 @@ class prototypeIdList : public QObject , public QScriptable ...@@ -61,7 +61,7 @@ class prototypeIdList : public QObject , public QScriptable
Q_OBJECT Q_OBJECT
public: public:
prototypeIdList(QObject *parent = 0); explicit prototypeIdList(QObject *parent = 0);
public Q_SLOTS: public Q_SLOTS:
QString toString() const; QString toString() const;
......
...@@ -93,7 +93,7 @@ class prototypeMatrix4x4 : public QObject , public QScriptable ...@@ -93,7 +93,7 @@ class prototypeMatrix4x4 : public QObject , public QScriptable
Q_OBJECT Q_OBJECT
public: public:
prototypeMatrix4x4(QObject *parent = 0); explicit prototypeMatrix4x4(QObject *parent = 0);
public slots: public slots:
......
...@@ -107,7 +107,7 @@ class prototypeVec3d : public QObject , public QScriptable ...@@ -107,7 +107,7 @@ class prototypeVec3d : public QObject , public QScriptable
Q_OBJECT Q_OBJECT
public: public:
prototypeVec3d(QObject *parent = 0); explicit prototypeVec3d(QObject *parent = 0);
public slots: public slots:
/** \brief Multiplies the given vector with the scalar /** \brief Multiplies the given vector with the scalar
......
...@@ -107,7 +107,7 @@ class prototypeVec4d : public QObject , public QScriptable ...@@ -107,7 +107,7 @@ class prototypeVec4d : public QObject , public QScriptable
Q_OBJECT Q_OBJECT
public: public:
prototypeVec4d(QObject *parent = 0); explicit prototypeVec4d(QObject *parent = 0);
public slots: public slots:
/** \brief Multiplies the given vector with the scalar /** \brief Multiplies the given vector with the scalar
......
...@@ -68,7 +68,7 @@ class DLLEXPORT BackupData : public PerObjectData ...@@ -68,7 +68,7 @@ class DLLEXPORT BackupData : public PerObjectData
public: public:
/// Constructor /// Constructor
BackupData(BaseObjectData* _object = 0); explicit BackupData(BaseObjectData* _object = 0);
/// Destructor /// Destructor
virtual ~BackupData(); virtual ~BackupData();
......
...@@ -63,7 +63,7 @@ class DLLEXPORT BaseBackup ...@@ -63,7 +63,7 @@ class DLLEXPORT BaseBackup
{ {
public: public:
BaseBackup(QString _name); explicit BaseBackup(QString _name);
/** \brief constructor /** \brief constructor
* *
......
...@@ -109,7 +109,7 @@ class DLLEXPORT BaseObject : public QObject { ...@@ -109,7 +109,7 @@ class DLLEXPORT BaseObject : public QObject {
* If the objectroot exists and parent is 0, it will be appended to the objectroot. * If the objectroot exists and parent is 0, it will be appended to the objectroot.
* If a parent is given, it is appended to this object. * If a parent is given, it is appended to this object.
*/ */
BaseObject( BaseObject *_parent = 0); explicit BaseObject( BaseObject *_parent = 0);
virtual ~BaseObject(); virtual ~BaseObject();
......
...@@ -73,7 +73,7 @@ class DLLEXPORT UpdateType { ...@@ -73,7 +73,7 @@ class DLLEXPORT UpdateType {
UpdateType(const UpdateType& _type); UpdateType(const UpdateType& _type);
UpdateType(UpdateTypeSet _set); explicit UpdateType(UpdateTypeSet _set);
/// Exact compare operator /// Exact compare operator
bool operator==(const UpdateType& _type) const; bool operator==(const UpdateType& _type) const;
......
...@@ -111,7 +111,7 @@ class DLLEXPORT _CLASS : public PerObjectData { \ ...@@ -111,7 +111,7 @@ class DLLEXPORT _CLASS : public PerObjectData { \
\ \
public: \ public: \
inline _CLASS() : data_( 0) { } \ inline _CLASS() : data_( 0) { } \
inline _CLASS(const _VALUE& _x) : data_(_x) { } \ inline explicit _CLASS(const _VALUE& _x) : data_(_x) { } \
inline virtual ~_CLASS() { } \ inline virtual ~_CLASS() { } \
inline virtual _CLASS* copyPerObjectData() { return new _CLASS(data_); } \ inline virtual _CLASS* copyPerObjectData() { return new _CLASS(data_); } \
inline _VALUE& data() { return data_; } \ inline _VALUE& data() { return data_; } \
......
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