summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-11-05 09:34:26 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-02-02 17:34:45 +0100
commit585b4b025bd962ff8e2a5f59bbeb4b94c72fe6c5 (patch)
treeff704a70584511ada0c3c365f3979d9fb212cdd0
parent2a2519caae140c41ccaa4c8e670d3286a96692f7 (diff)
Replace 0 with nullptr
Change-Id: I9d225accdf7d7f91efd189588453d2a39f2a11e7 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r--examples/webview/minibrowser/main.cpp2
-rw-r--r--src/imports/webview.cpp2
-rw-r--r--src/plugins/android/qandroidwebview_p.h2
-rw-r--r--src/plugins/darwin/qdarwinwebview_p.h2
-rw-r--r--src/plugins/webengine/qwebenginewebview_p.h2
-rw-r--r--src/webview/qabstractwebview_p.h2
-rw-r--r--src/webview/qquickviewcontroller_p.h2
-rw-r--r--src/webview/qquickwebview_p.h2
-rw-r--r--src/webview/qwebview_p.h2
-rw-r--r--src/webview/qwebviewplugin_p.h2
10 files changed, 10 insertions, 10 deletions
diff --git a/examples/webview/minibrowser/main.cpp b/examples/webview/minibrowser/main.cpp
index 8b4718f..0f3fd2a 100644
--- a/examples/webview/minibrowser/main.cpp
+++ b/examples/webview/minibrowser/main.cpp
@@ -62,7 +62,7 @@
class Utils : public QObject {
Q_OBJECT
public:
- Utils(QObject* parent = 0) : QObject(parent) { }
+ Utils(QObject *parent = nullptr) : QObject(parent) { }
Q_INVOKABLE static QUrl fromUserInput(const QString& userInput);
};
diff --git a/src/imports/webview.cpp b/src/imports/webview.cpp
index 84ff956..36392a0 100644
--- a/src/imports/webview.cpp
+++ b/src/imports/webview.cpp
@@ -47,7 +47,7 @@ class QWebViewModule : public QQmlExtensionPlugin
Q_OBJECT
Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
public:
- QWebViewModule(QObject *parent = 0) : QQmlExtensionPlugin(parent) { }
+ QWebViewModule(QObject *parent = nullptr) : QQmlExtensionPlugin(parent) { }
void registerTypes(const char *uri)
{
Q_ASSERT(QLatin1String(uri) == QLatin1String("QtWebView"));
diff --git a/src/plugins/android/qandroidwebview_p.h b/src/plugins/android/qandroidwebview_p.h
index bdbf1be..8f7e490 100644
--- a/src/plugins/android/qandroidwebview_p.h
+++ b/src/plugins/android/qandroidwebview_p.h
@@ -61,7 +61,7 @@ class QAndroidWebViewPrivate : public QAbstractWebView
{
Q_OBJECT
public:
- explicit QAndroidWebViewPrivate(QObject *p = 0);
+ explicit QAndroidWebViewPrivate(QObject *p = nullptr);
~QAndroidWebViewPrivate() override;
QString httpUserAgent() const override;
diff --git a/src/plugins/darwin/qdarwinwebview_p.h b/src/plugins/darwin/qdarwinwebview_p.h
index b303702..603bf6a 100644
--- a/src/plugins/darwin/qdarwinwebview_p.h
+++ b/src/plugins/darwin/qdarwinwebview_p.h
@@ -79,7 +79,7 @@ class QDarwinWebViewPrivate : public QAbstractWebView
{
Q_OBJECT
public:
- explicit QDarwinWebViewPrivate(QObject *p = 0);
+ explicit QDarwinWebViewPrivate(QObject *p = nullptr);
~QDarwinWebViewPrivate() override;
QString httpUserAgent() const override;
diff --git a/src/plugins/webengine/qwebenginewebview_p.h b/src/plugins/webengine/qwebenginewebview_p.h
index aee29f0..ad8c745 100644
--- a/src/plugins/webengine/qwebenginewebview_p.h
+++ b/src/plugins/webengine/qwebenginewebview_p.h
@@ -67,7 +67,7 @@ class QWebEngineWebViewPrivate : public QAbstractWebView
{
Q_OBJECT
public:
- explicit QWebEngineWebViewPrivate(QObject *p = 0);
+ explicit QWebEngineWebViewPrivate(QObject *p = nullptr);
~QWebEngineWebViewPrivate() override;
QString httpUserAgent() const override;
diff --git a/src/webview/qabstractwebview_p.h b/src/webview/qabstractwebview_p.h
index e7c5653..9f57b5a 100644
--- a/src/webview/qabstractwebview_p.h
+++ b/src/webview/qabstractwebview_p.h
@@ -73,7 +73,7 @@ Q_SIGNALS:
void httpUserAgentChanged(const QString &httpUserAgent);
protected:
- explicit QAbstractWebView(QObject *p = 0) : QObject(p) { }
+ explicit QAbstractWebView(QObject *p = nullptr) : QObject(p) { }
};
QT_END_NAMESPACE
diff --git a/src/webview/qquickviewcontroller_p.h b/src/webview/qquickviewcontroller_p.h
index 060b7bc..f216cf4 100644
--- a/src/webview/qquickviewcontroller_p.h
+++ b/src/webview/qquickviewcontroller_p.h
@@ -62,7 +62,7 @@ class Q_WEBVIEW_EXPORT QQuickViewController : public QQuickItem
{
Q_OBJECT
public:
- explicit QQuickViewController(QQuickItem *parent = 0);
+ explicit QQuickViewController(QQuickItem *parent = nullptr);
~QQuickViewController();
public Q_SLOTS:
diff --git a/src/webview/qquickwebview_p.h b/src/webview/qquickwebview_p.h
index b7f8fb2..6c7bf29 100644
--- a/src/webview/qquickwebview_p.h
+++ b/src/webview/qquickwebview_p.h
@@ -77,7 +77,7 @@ public:
LoadFailedStatus
};
- QQuickWebView(QQuickItem *parent = 0);
+ QQuickWebView(QQuickItem *parent = nullptr);
~QQuickWebView();
QString httpUserAgent() const override;
diff --git a/src/webview/qwebview_p.h b/src/webview/qwebview_p.h
index a7f77aa..46754f8 100644
--- a/src/webview/qwebview_p.h
+++ b/src/webview/qwebview_p.h
@@ -75,7 +75,7 @@ public:
LoadFailedStatus
};
- explicit QWebView(QObject *p = 0);
+ explicit QWebView(QObject *p = nullptr);
~QWebView() override;
QString httpUserAgent() const override;
diff --git a/src/webview/qwebviewplugin_p.h b/src/webview/qwebviewplugin_p.h
index aeba38f..2a496e5 100644
--- a/src/webview/qwebviewplugin_p.h
+++ b/src/webview/qwebviewplugin_p.h
@@ -61,7 +61,7 @@ class Q_WEBVIEW_EXPORT QWebViewPlugin : public QObject
{
Q_OBJECT
public:
- explicit QWebViewPlugin(QObject *parent = 0);
+ explicit QWebViewPlugin(QObject *parent = nullptr);
virtual ~QWebViewPlugin();
virtual QAbstractWebView *create(const QString &key) const = 0;