Commit 366dfac1 authored by Yuri Chornoivan's avatar Yuri Chornoivan

Fix minor issues found by EBN

parent d2206735
......@@ -34,7 +34,7 @@ namespace Palapeli
class TriggerListProxyModel : public KCategorizedSortFilterProxyModel
{
public:
TriggerListProxyModel(QObject* parent = 0)
explicit TriggerListProxyModel(QObject* parent = 0)
: KCategorizedSortFilterProxyModel(parent)
{
setCategorizedModel(true);
......@@ -61,7 +61,7 @@ namespace Palapeli
{
Q_OBJECT
public:
TriggerListDelegateWidget(QWidget* parent = 0) : QWidget(parent)
explicit TriggerListDelegateWidget(QWidget* parent = 0) : QWidget(parent)
{
m_iconLabel = new QLabel(this);
m_nameLabel = new Palapeli::ElidingLabel(this);
......
......@@ -36,7 +36,7 @@ namespace Palapeli
{
COMPONENT_SUBCLASS(Metadata)
public:
MetadataComponent(const Palapeli::PuzzleMetadata& metadata) : metadata(metadata) {}
explicit MetadataComponent(const Palapeli::PuzzleMetadata& metadata) : metadata(metadata) {}
Palapeli::PuzzleMetadata metadata;
};
......@@ -45,7 +45,7 @@ namespace Palapeli
{
COMPONENT_SUBCLASS(Contents)
public:
ContentsComponent(const Palapeli::PuzzleContents& contents) : contents(contents) {}
explicit ContentsComponent(const Palapeli::PuzzleContents& contents) : contents(contents) {}
Palapeli::PuzzleContents contents;
};
......@@ -55,7 +55,7 @@ namespace Palapeli
{
COMPONENT_SUBCLASS(CreationContext)
public:
CreationContextComponent(const Palapeli::PuzzleCreationContext& creationContext) : creationContext(creationContext) {}
explicit CreationContextComponent(const Palapeli::PuzzleCreationContext& creationContext) : creationContext(creationContext) {}
Palapeli::PuzzleCreationContext creationContext;
Palapeli::PuzzleComponent* cast(Type type) const Q_DECL_OVERRIDE;
......
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