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