refactor: simplify the code

This commit is contained in:
Kevin Yue
2022-06-12 17:34:23 +08:00
parent 5ebfe9b0f4
commit cb457c4b09
14 changed files with 128 additions and 175 deletions

View File

@@ -12,7 +12,6 @@ class EnhancedWebView : public QWebEngineView
Q_OBJECT
public:
explicit EnhancedWebView(QWidget *parent = nullptr);
~EnhancedWebView();
void initialize();
@@ -24,7 +23,7 @@ private slots:
void onEventReceived(QString eventName, QJsonObject params);
private:
CDPCommandManager *cdp;
CDPCommandManager *cdp { nullptr };
};
#endif // ENHANCEDWEBVIEW_H