diff --git a/src/webengine/api/qquickwebenginehistory_p.h b/src/webengine/api/qquickwebenginehistory_p.h
index cb6aff2bc40bd4b96ff23d2974a9a8038d941c7c..9b3eeb617a177109aa0c6a9d94f387a959085055 100644
--- a/src/webengine/api/qquickwebenginehistory_p.h
+++ b/src/webengine/api/qquickwebenginehistory_p.h
@@ -67,7 +67,7 @@ public:
 private:
     QQuickWebEngineHistoryListModel();
 
-    Q_DECLARE_PRIVATE(QQuickWebEngineHistoryListModel);
+    Q_DECLARE_PRIVATE(QQuickWebEngineHistoryListModel)
     QScopedPointer<QQuickWebEngineHistoryListModelPrivate> d_ptr;
 
     friend class QQuickWebEngineHistory;
@@ -98,7 +98,7 @@ public:
 private:
     QQuickWebEngineHistory();
 
-    Q_DECLARE_PRIVATE(QQuickWebEngineHistory);
+    Q_DECLARE_PRIVATE(QQuickWebEngineHistory)
     QScopedPointer<QQuickWebEngineHistoryPrivate> d_ptr;
 };
 
diff --git a/src/webenginewidgets/api/qwebenginecertificateerror.h b/src/webenginewidgets/api/qwebenginecertificateerror.h
index 4ada5560d01be112bd3025541de29ca8838ab7e8..90b23208c3751ad53934a225fa3803e4c106bd66 100644
--- a/src/webenginewidgets/api/qwebenginecertificateerror.h
+++ b/src/webenginewidgets/api/qwebenginecertificateerror.h
@@ -75,7 +75,7 @@ public:
 
 private:
     Q_DISABLE_COPY(QWebEngineCertificateError)
-    Q_DECLARE_PRIVATE(QWebEngineCertificateError);
+    Q_DECLARE_PRIVATE(QWebEngineCertificateError)
     QScopedPointer<QWebEngineCertificateErrorPrivate> d_ptr;
 };
 
diff --git a/src/webenginewidgets/api/qwebenginehistory.h b/src/webenginewidgets/api/qwebenginehistory.h
index f7f2db81ee72b46893a839c95cce6188db354338..0471e28e6bbf25a4641b4466255d2a3a32897c45 100644
--- a/src/webenginewidgets/api/qwebenginehistory.h
+++ b/src/webenginewidgets/api/qwebenginehistory.h
@@ -67,7 +67,7 @@ public:
     bool isValid() const;
 private:
     QWebEngineHistoryItem(QWebEngineHistoryItemPrivate *priv);
-    Q_DECLARE_PRIVATE_D(d.data(), QWebEngineHistoryItem);
+    Q_DECLARE_PRIVATE_D(d.data(), QWebEngineHistoryItem)
     QExplicitlySharedDataPointer<QWebEngineHistoryItemPrivate> d;
     friend class QWebEngineHistory;
     friend class QWebEngineHistoryPrivate;
diff --git a/src/webenginewidgets/api/qwebenginepage.h b/src/webenginewidgets/api/qwebenginepage.h
index f2067c6aa356be771ce0a6010fd6c1b781a4dfd2..b4cf52298d48edff8b548f6893f4f71854fa39e3 100644
--- a/src/webenginewidgets/api/qwebenginepage.h
+++ b/src/webenginewidgets/api/qwebenginepage.h
@@ -125,7 +125,7 @@ public:
         FindBackward = 1,
         FindCaseSensitively = 2,
     };
-    Q_DECLARE_FLAGS(FindFlags, FindFlag);
+    Q_DECLARE_FLAGS(FindFlags, FindFlag)
 
     enum WebWindowType {
         WebBrowserWindow,
@@ -271,7 +271,7 @@ protected:
     virtual bool acceptNavigationRequest(const QUrl &url, NavigationType type, bool isMainFrame);
 
 private:
-    Q_DECLARE_PRIVATE(QWebEnginePage);
+    Q_DECLARE_PRIVATE(QWebEnginePage)
     QScopedPointer<QWebEnginePagePrivate> d_ptr;
 #ifndef QT_NO_ACTION
     Q_PRIVATE_SLOT(d_func(), void _q_webActionTriggered(bool checked))
diff --git a/src/webenginewidgets/api/qwebengineview.h b/src/webenginewidgets/api/qwebengineview.h
index 747dc87176ce03f4d009f5944bcf1492d5835856..6b37dbf393651bc578f38cf37616a9c2fc55a92e 100644
--- a/src/webenginewidgets/api/qwebengineview.h
+++ b/src/webenginewidgets/api/qwebengineview.h
@@ -120,7 +120,7 @@ protected:
     virtual bool event(QEvent*) Q_DECL_OVERRIDE;
 
 private:
-    Q_DECLARE_PRIVATE(QWebEngineView);
+    Q_DECLARE_PRIVATE(QWebEngineView)
     QScopedPointer<QWebEngineViewPrivate> d_ptr;
 
     friend class QWebEnginePage;