From 966a20eb634fad4dc683d6b1d15317220eddc89d Mon Sep 17 00:00:00 2001 From: Jekyll Wu Date: Sun, 2 Dec 2012 11:29:45 +0800 Subject: [PATCH] Krazy fix: explicit constructor --- src/History.h | 2 +- src/PrintOptions.h | 2 +- src/Profile.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/History.h b/src/History.h index 8650b651..5fea0281 100644 --- a/src/History.h +++ b/src/History.h @@ -356,7 +356,7 @@ public: class HistoryTypeFile : public HistoryType { public: - HistoryTypeFile(const QString& fileName = QString()); + explicit HistoryTypeFile(const QString& fileName = QString()); virtual bool isEnabled() const; virtual int maximumLineCount() const; diff --git a/src/PrintOptions.h b/src/PrintOptions.h index 0dcdcb5b..3560dbc2 100644 --- a/src/PrintOptions.h +++ b/src/PrintOptions.h @@ -31,7 +31,7 @@ class PrintOptions : public QWidget, private Ui::PrintOptions Q_OBJECT public: - PrintOptions(QWidget* parent = 0); + explicit PrintOptions(QWidget* parent = 0); ~PrintOptions(); public slots: diff --git a/src/Profile.h b/src/Profile.h index f14d3a21..ab154c0d 100644 --- a/src/Profile.h +++ b/src/Profile.h @@ -588,7 +588,7 @@ public: typedef KSharedPtr Ptr; /** Construct a new profile group, which is hidden by default. */ - ProfileGroup(Profile::Ptr parent = Profile::Ptr()); + explicit ProfileGroup(Profile::Ptr parent = Profile::Ptr()); /** Add a profile to the group. Calling setProperty() will update this * profile. When creating a group, add the profiles to the group then