From 5271ab955c10d05a676cd23ad7ec2e1d7a1db6e7 Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Wed, 6 Nov 2013 01:54:59 +0100 Subject: [PATCH] In libs/ add some more explicit keywords where useful --- libs/db/tableviewcolumn.h | 2 +- libs/db/validator.h | 2 +- libs/kopageapp/widgets/KoPABackgroundFillWidget.h | 2 +- libs/main/KoApplication.h | 2 +- libs/main/KoPrintingDialog_p.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/db/tableviewcolumn.h b/libs/db/tableviewcolumn.h index 76ba6cd76b..f2370bce54 100644 --- a/libs/db/tableviewcolumn.h +++ b/libs/db/tableviewcolumn.h @@ -41,7 +41,7 @@ public: /*! Not db-aware ctor. if \a owner is true, the field \a will be owned by this column, so you shouldn't care about destroying this field. */ - TableViewColumn(Field& f, bool owner = false); + explicit TableViewColumn(Field& f, bool owner = false); /*! Not db-aware, convenience ctor, like above. The field is created using specified parameters that are equal to these accepted by KexiDB::Field ctor. The column will be the owner diff --git a/libs/db/validator.h b/libs/db/validator.h index ce4dc2c26e..af6dc19762 100644 --- a/libs/db/validator.h +++ b/libs/db/validator.h @@ -45,7 +45,7 @@ class CALLIGRADB_EXPORT Validator : public QValidator public: enum Result { Error = 0, Ok = 1, Warning = 2 }; - Validator(QObject * parent = 0); + explicit Validator(QObject * parent = 0); virtual ~Validator(); diff --git a/libs/kopageapp/widgets/KoPABackgroundFillWidget.h b/libs/kopageapp/widgets/KoPABackgroundFillWidget.h index a5a74be71b..45c7ddebe5 100644 --- a/libs/kopageapp/widgets/KoPABackgroundFillWidget.h +++ b/libs/kopageapp/widgets/KoPABackgroundFillWidget.h @@ -31,7 +31,7 @@ class KoPAViewBase; class KOPAGEAPP_EXPORT KoPABackgroundFillWidget : public KoFillConfigWidget { public: - KoPABackgroundFillWidget(QWidget *parent); + explicit KoPABackgroundFillWidget(QWidget *parent); void setView(KoPAViewBase *view); diff --git a/libs/main/KoApplication.h b/libs/main/KoApplication.h index 83ef15b299..5427c27160 100644 --- a/libs/main/KoApplication.h +++ b/libs/main/KoApplication.h @@ -57,7 +57,7 @@ public: * * @param nativeMimeType: the nativeMimeType of the calligra application */ - KoApplication(const QByteArray &nativeMimeType); + explicit KoApplication(const QByteArray &nativeMimeType); /** * Destructor. diff --git a/libs/main/KoPrintingDialog_p.h b/libs/main/KoPrintingDialog_p.h index f43222bbb1..24364e271d 100644 --- a/libs/main/KoPrintingDialog_p.h +++ b/libs/main/KoPrintingDialog_p.h @@ -44,7 +44,7 @@ class KoPrintingDialogPrivate { public: - KoPrintingDialogPrivate(KoPrintingDialog *dia) + explicit KoPrintingDialogPrivate(KoPrintingDialog *dia) : parent(dia), stop(true), shapeManager(0), -- GitLab