Commit 60686d10 authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Fix minor EBN issues (explicit)

parent c1a62bfc
......@@ -63,7 +63,7 @@ public:
/**
* Constructs a message item. It is hidden by default.
*/
KGamePopupItem(QGraphicsItem * parent = nullptr);
explicit KGamePopupItem(QGraphicsItem * parent = nullptr);
/**
* Destructs a message item
*/
......
......@@ -45,7 +45,7 @@ public:
///Construcs a new KgImageProvider with the supplied KgThemeProvider
///@param provider The KgThemeProvider used to discover the game's
///themes.
KgImageProvider(KgThemeProvider* provider);
explicit KgImageProvider(KgThemeProvider* provider);
///Reimplemented method that is called when a sprite pixmap is requested
QImage requestImage(const QString& source, QSize *size, const QSize &requestedSize) override;
......
......@@ -34,7 +34,7 @@ class KgThemeDelegate : public QStyledItemDelegate
IdRole //not displayed, but used internally
};
KgThemeDelegate(QObject* parent = nullptr);
explicit KgThemeDelegate(QObject* parent = nullptr);
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override;
///@note The implementation is independent of @a option and @a index.
QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const override;
......
......@@ -71,7 +71,7 @@ public:
* Constructs a KGameIO object
*/
KGameIO();
KGameIO(KPlayer*);
explicit KGameIO(KPlayer*);
virtual ~KGameIO();
/**
......@@ -214,7 +214,7 @@ public:
*
* @param parent The parents widget whose keyboard events * should be grabbed
*/
KGameKeyIO(QWidget *parent);
explicit KGameKeyIO(QWidget *parent);
virtual ~KGameKeyIO();
/**
......@@ -370,7 +370,7 @@ public:
*
* @param name the filename of the process to start
*/
KGameProcessIO(const QString& name);
explicit KGameProcessIO(const QString& name);
/**
* Deletes the process input devices
......@@ -520,7 +520,7 @@ public:
*
*/
KGameComputerIO();
KGameComputerIO(KPlayer* player);
explicit KGameComputerIO(KPlayer* player);
~KGameComputerIO();
int rtti() const override;
......
......@@ -81,7 +81,7 @@ public:
* You have to call registerHandler before you can use this
* handler!
**/
KGamePropertyHandler(QObject* parent = nullptr);
explicit KGamePropertyHandler(QObject* parent = nullptr);
/**
* Construct a registered handler.
......
......@@ -67,7 +67,7 @@ public:
/**
* The usual QObject constructor, does nothing else.
**/
KMessageIO (QObject *parent = nullptr);
explicit KMessageIO (QObject *parent = nullptr);
/**
* The usual destructor, does nothing special.
......
......@@ -73,7 +73,7 @@ class KDEGAMESPRIVATE_EXPORT KPlayer : public QObject
public:
typedef QList<KGameIO*> KGameIOList;
// KPlayer(KGame *,KGameIO * input=0);
// explicit KPlayer(KGame *,KGameIO * input=0);
/**
* Create a new player object. It will be automatically
* deleted if the game it belongs to is deleted.
......
......@@ -145,7 +145,7 @@ public:
Note that the restacking functions are quite intelligent and will only
repaint if there is an actual need of doing it. So if you call raise on
an item that is already (locally) on the top, no redraw will take place */
KGameCanvasItem(KGameCanvasAbstract* canvas = NULL);
explicit KGameCanvasItem(KGameCanvasAbstract* canvas = NULL);
virtual ~KGameCanvasItem();
......@@ -245,7 +245,7 @@ class KDEGAMESPRIVATE_EXPORT KGameCanvasDummy : public KGameCanvasItem
{
public:
/** Constructor */
KGameCanvasDummy(KGameCanvasAbstract* canvas = NULL);
explicit KGameCanvasDummy(KGameCanvasAbstract* canvas = NULL);
virtual ~KGameCanvasDummy();
......@@ -284,7 +284,7 @@ private:
public:
/** Constructor */
KGameCanvasGroup(KGameCanvasAbstract* canvas = NULL);
explicit KGameCanvasGroup(KGameCanvasAbstract* canvas = NULL);
virtual ~KGameCanvasGroup();
......@@ -318,10 +318,10 @@ private:
public:
/** Constructor, specifying the picture to use */
KGameCanvasPicture(const QPicture& picture, KGameCanvasAbstract* canvas = NULL);
explicit KGameCanvasPicture(const QPicture& picture, KGameCanvasAbstract* canvas = NULL);
/** Constructor, creating with an empty picture */
KGameCanvasPicture(KGameCanvasAbstract* canvas = NULL);
explicit KGameCanvasPicture(KGameCanvasAbstract* canvas = NULL);
virtual ~KGameCanvasPicture();
......@@ -350,10 +350,10 @@ private:
public:
/** Constructor, specifying the pixmap to use */
KGameCanvasPixmap(const QPixmap& pixmap, KGameCanvasAbstract* canvas = NULL);
explicit KGameCanvasPixmap(const QPixmap& pixmap, KGameCanvasAbstract* canvas = NULL);
/** Constructor, creating with an empty pixmap */
KGameCanvasPixmap(KGameCanvasAbstract* canvas = NULL);
explicit KGameCanvasPixmap(KGameCanvasAbstract* canvas = NULL);
virtual ~KGameCanvasPixmap();
......@@ -408,7 +408,7 @@ public:
bool move_orig, KGameCanvasAbstract* canvas = NULL);
/** Constructor, creating with an empty pixmap */
KGameCanvasTiledPixmap(KGameCanvasAbstract* canvas = NULL);
explicit KGameCanvasTiledPixmap(KGameCanvasAbstract* canvas = NULL);
virtual ~KGameCanvasTiledPixmap();
......@@ -458,7 +458,7 @@ public:
KGameCanvasRectangle(const QColor& color, const QSize &size, KGameCanvasAbstract* canvas = NULL);
/** Constructor, creating with an empty pixmap */
KGameCanvasRectangle(KGameCanvasAbstract* canvas = NULL);
explicit KGameCanvasRectangle(KGameCanvasAbstract* canvas = NULL);
virtual ~KGameCanvasRectangle();
......@@ -525,7 +525,7 @@ public:
KGameCanvasAbstract* canvas = NULL);
/** Constructor, creating with an empty text */
KGameCanvasText(KGameCanvasAbstract* canvas = NULL);
explicit KGameCanvasText(KGameCanvasAbstract* canvas = NULL);
virtual ~KGameCanvasText();
......@@ -592,7 +592,7 @@ private Q_SLOTS:
public:
/** The constructor */
KGameCanvasWidget(QWidget* parent = NULL);
explicit KGameCanvasWidget(QWidget* parent = NULL);
virtual ~KGameCanvasWidget();
......
......@@ -47,7 +47,7 @@ class QPixmap;
class KDEGAMESPRIVATE_EXPORT KGameTheme
{
public:
KGameTheme(const QString &themeGroup = QStringLiteral("KGameTheme"));
explicit KGameTheme(const QString &themeGroup = QStringLiteral("KGameTheme"));
virtual ~KGameTheme();
/**
......
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