From 03f0255474270579fe0c5c4b0856e5aef5c2eae1 Mon Sep 17 00:00:00 2001 From: Sergio Ahumada Date: Mon, 3 Mar 2014 16:16:12 +0100 Subject: Mark some constructor as explicit Change-Id: I92c5b00d5bbcc08a241ed0382c13b6bf2676ca6f Reviewed-by: Milian Wolff Reviewed-by: Frederik Gladhorn --- src/imports/webchannel/qmlwebchannel.h | 2 +- src/webchannel/qmetaobjectpublisher_p.h | 2 +- src/webchannel/qwebchannel.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/imports/webchannel/qmlwebchannel.h b/src/imports/webchannel/qmlwebchannel.h index c45796f..00fd4e6 100644 --- a/src/imports/webchannel/qmlwebchannel.h +++ b/src/imports/webchannel/qmlwebchannel.h @@ -62,7 +62,7 @@ class QmlWebChannel : public QWebChannel Q_PROPERTY( QQmlListProperty registeredObjects READ registeredObjects ) public: - QmlWebChannel(QObject *parent = 0); + explicit QmlWebChannel(QObject *parent = 0); virtual ~QmlWebChannel(); Q_INVOKABLE void registerObjects(const QVariantMap& objects); diff --git a/src/webchannel/qmetaobjectpublisher_p.h b/src/webchannel/qmetaobjectpublisher_p.h index ff077e7..3047548 100644 --- a/src/webchannel/qmetaobjectpublisher_p.h +++ b/src/webchannel/qmetaobjectpublisher_p.h @@ -62,7 +62,7 @@ class Q_WEBCHANNEL_EXPORT QMetaObjectPublisher : public QObject, public QWebChan Q_OBJECT Q_INTERFACES(QWebChannelMessageHandlerInterface) public: - QMetaObjectPublisher(QWebChannel *webChannel); + explicit QMetaObjectPublisher(QWebChannel *webChannel); virtual ~QMetaObjectPublisher(); /** diff --git a/src/webchannel/qwebchannel.h b/src/webchannel/qwebchannel.h index f6965e0..9e30152 100644 --- a/src/webchannel/qwebchannel.h +++ b/src/webchannel/qwebchannel.h @@ -59,7 +59,7 @@ class Q_WEBCHANNEL_EXPORT QWebChannel : public QObject Q_DISABLE_COPY(QWebChannel) Q_PROPERTY(bool blockUpdates READ blockUpdates WRITE setBlockUpdates NOTIFY blockUpdatesChanged); public: - QWebChannel(QObject *parent = 0); + explicit QWebChannel(QObject *parent = 0); ~QWebChannel(); /** -- cgit v1.2.1