SVN commit 609474 by ariya: SVN_SILENT explicit constructors M +5 -5 customproperty.h M +2 -2 editoritem.h M +1 -1 factory.h M +1 -1 widgetproxy.h --- trunk/koffice/libs/koproperty/customproperty.h #609473:609474 @@ -40,7 +40,7 @@ class KOPROPERTY_EXPORT CustomProperty { public: - CustomProperty(Property *parent); + explicit CustomProperty(Property *parent); virtual ~CustomProperty(); /*! This function is called by \ref Property::setValue() when @@ -74,7 +74,7 @@ class KOPROPERTY_EXPORT SizeCustomProperty : public CustomProperty { public: - SizeCustomProperty(Property *parent); + explicit SizeCustomProperty(Property *parent); ~SizeCustomProperty(); void setValue(const QVariant &value, bool rememberOldValue); @@ -86,7 +86,7 @@ class KOPROPERTY_EXPORT PointCustomProperty : public CustomProperty { public: - PointCustomProperty(Property *parent); + explicit PointCustomProperty(Property *parent); ~PointCustomProperty(); void setValue(const QVariant &value, bool rememberOldValue); @@ -98,7 +98,7 @@ class KOPROPERTY_EXPORT RectCustomProperty : public CustomProperty { public: - RectCustomProperty(Property *parent); + explicit RectCustomProperty(Property *parent); ~RectCustomProperty(); void setValue(const QVariant &value, bool rememberOldValue); @@ -110,7 +110,7 @@ class KOPROPERTY_EXPORT SizePolicyCustomProperty : public CustomProperty { public: - SizePolicyCustomProperty(Property *parent); + explicit SizePolicyCustomProperty(Property *parent); ~SizePolicyCustomProperty(); void setValue(const QVariant &value, bool rememberOldValue); --- trunk/koffice/libs/koproperty/editoritem.h #609473:609474 @@ -57,7 +57,7 @@ Q3ListViewItem *after=0); //! Two helper contructors for subclass - EditorItem(K3ListView *parent); + explicit EditorItem(K3ListView *parent); EditorItem(EditorItem *parent, const QString &text); EditorItem(EditorItem *parent, EditorItem *after, const QString &text); @@ -116,7 +116,7 @@ class EditorDummyItem : public EditorItem { public: - EditorDummyItem(K3ListView *parent); + explicit EditorDummyItem(K3ListView *parent); virtual ~EditorDummyItem(); protected: --- trunk/koffice/libs/koproperty/factory.h #609473:609474 @@ -41,7 +41,7 @@ class KOPROPERTY_EXPORT CustomPropertyFactory : public QObject { public: - CustomPropertyFactory(QObject *parent); + explicit CustomPropertyFactory(QObject *parent); virtual ~CustomPropertyFactory(); /*! \return a new instance of custom property for \a parent. --- trunk/koffice/libs/koproperty/widgetproxy.h #609473:609474 @@ -39,7 +39,7 @@ Q_OBJECT public: - WidgetProxy(QWidget *parent, const char *name=0); + explicit WidgetProxy(QWidget *parent, const char *name=0); WidgetProxy(); virtual ~WidgetProxy();