Commit 6e6b9117 authored by Michael Georg Hansen's avatar Michael Georg Hansen
Browse files

Fix krazy2 issues: Check for C++ ctors that should be declared 'explicit' [explicit]

parent fb2d622d
......@@ -60,7 +60,7 @@ class ExpoBlendingDlg : public KDialog
public:
ExpoBlendingDlg(Manager* mngr, QWidget* parent=0);
explicit ExpoBlendingDlg(Manager* mngr, QWidget* parent=0);
~ExpoBlendingDlg();
void loadItems(const KUrl::List& urls);
......
......@@ -59,7 +59,7 @@ class ImportWizardDlg : public KAssistantDialog
public:
ImportWizardDlg(Manager* mngr, QWidget* parent=0);
explicit ImportWizardDlg(Manager* mngr, QWidget* parent=0);
~ImportWizardDlg();
KUrl::List itemUrls() const;
......
......@@ -33,7 +33,7 @@ class ModelTest : public QObject
Q_OBJECT
public:
ModelTest(QAbstractItemModel *model, QObject *parent = 0);
explicit ModelTest(QAbstractItemModel *model, QObject *parent = 0);
private Q_SLOTS:
void nonDestructiveBasicTest();
......
......@@ -59,7 +59,7 @@ class ImportWizardDlg : public KAssistantDialog
Q_OBJECT
public:
ImportWizardDlg(Manager* mngr, QWidget* parent=0);
explicit ImportWizardDlg(Manager* mngr, QWidget* parent=0);
~ImportWizardDlg();
KUrl::List itemUrls() const;
......
......@@ -37,7 +37,7 @@ namespace KIPIPhotoFramesEditor
public:
PixelizePhotoEffect(int pixelSize, QObject * parent = 0);
explicit PixelizePhotoEffect(int pixelSize, QObject * parent = 0);
virtual QtAbstractPropertyBrowser * propertyBrowser() const;
virtual QString toString() const;
......
......@@ -38,7 +38,7 @@ namespace KIPIPhotoLayoutsEditor
Q_OBJECT
TextItem * m_item;
public:
TextColorChangeListener(TextItem * item, QObject * parent = 0);
explicit TextColorChangeListener(TextItem * item, QObject * parent = 0);
public slots:
void propertyChanged(QtProperty * property);
};
......
......@@ -38,7 +38,7 @@ namespace KIPIPhotoLayoutsEditor
Q_OBJECT
TextItem * m_item;
public:
TextFontChangeListener(TextItem * item, QObject * parent = 0);
explicit TextFontChangeListener(TextItem * item, QObject * parent = 0);
public slots:
void propertyChanged(QtProperty * property);
};
......
......@@ -41,7 +41,7 @@ namespace KIPIPhotoLayoutsEditor
public:
CropWidgetItem(QGraphicsItem * parent = 0, QGraphicsScene * scene = 0);
explicit CropWidgetItem(QGraphicsItem * parent = 0, QGraphicsScene * scene = 0);
virtual ~CropWidgetItem();
virtual QRectF boundingRect() const;
......
......@@ -49,7 +49,7 @@ namespace KIPIPhotoLayoutsEditor
public:
RotationWidgetItem(const QList<AbstractPhoto*> & items, QGraphicsItem * parent = 0);
explicit RotationWidgetItem(const QList<AbstractPhoto*> & items, QGraphicsItem * parent = 0);
virtual void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0);
virtual QPainterPath shape() const;
virtual QPainterPath opaqueArea() const;
......
......@@ -44,7 +44,7 @@ namespace KIPIPhotoLayoutsEditor
public:
ScalingWidgetItem(const QList<AbstractPhoto*> & items, QGraphicsItem * parent = 0, QGraphicsScene * scene = 0);
explicit ScalingWidgetItem(const QList<AbstractPhoto*> & items, QGraphicsItem * parent = 0, QGraphicsScene * scene = 0);
virtual ~ScalingWidgetItem();
virtual QRectF boundingRect() const;
......
......@@ -44,7 +44,7 @@ namespace KIPIPhotoLayoutsEditor
public:
ImageFileDialog(const KUrl & startDir, QWidget * parent = 0, QWidget * widget = 0);
explicit ImageFileDialog(const KUrl & startDir, QWidget * parent = 0, QWidget * widget = 0);
virtual int exec();
const char * format();
......
......@@ -38,7 +38,7 @@ namespace KIPIPhotoLayoutsEditor
{
public:
AbstractItemInterface(QGraphicsItem * parent = 0, QGraphicsScene * scene = 0);
explicit AbstractItemInterface(QGraphicsItem * parent = 0, QGraphicsScene * scene = 0);
protected:
......
......@@ -43,7 +43,7 @@ namespace KIPIPhotoLayoutsEditor
public:
PhotoItem(const QImage & photo, const QString & name = QString(), Scene * scene = 0);
explicit PhotoItem(const QImage & photo, const QString & name = QString(), Scene * scene = 0);
virtual ~PhotoItem();
/// Convert photo item to SVG format
......
......@@ -50,7 +50,7 @@ namespace KIPIPhotoLayoutsEditor
public:
TextItem(const QString & text = QString(), Scene * scene = 0);
explicit TextItem(const QString & text = QString(), Scene * scene = 0);
virtual void focusInEvent(QFocusEvent *event);
virtual void focusOutEvent(QFocusEvent *event);
virtual void keyPressEvent(QKeyEvent * event);
......
......@@ -36,7 +36,7 @@ namespace KIPIPhotoLayoutsEditor
public:
ZoomTool(Scene * scene, QWidget * parent = 0);
explicit ZoomTool(Scene * scene, QWidget * parent = 0);
~ZoomTool();
public slots:
......
......@@ -38,7 +38,7 @@ class RajceLoginDialog : public QDialog
public:
RajceLoginDialog(QWidget* parent, const QString& _name=QString(),
explicit RajceLoginDialog(QWidget* parent, const QString& _name=QString(),
const QString& _passwd=QString());
~RajceLoginDialog();
......
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