Mod: Single arg ctors must be explicit

This commit is contained in:
berniev
2022-08-15 19:28:04 +10:00
committed by wwmayer
parent 3877fc62c3
commit 180edfa3cc
263 changed files with 473 additions and 473 deletions

View File

@@ -50,7 +50,7 @@ private:
class FirewallPython : public Firewall
{
public:
FirewallPython(const Py::Object&);
explicit FirewallPython(const Py::Object&);
~FirewallPython() override;
bool filter(const QByteArray&) const override;
@@ -80,7 +80,7 @@ class AppServer : public QTcpServer
Q_OBJECT
public:
AppServer(bool direct = false, QObject* parent = nullptr);
explicit AppServer(bool direct = false, QObject* parent = nullptr);
protected:
void incomingConnection(qintptr socket) override;

View File

@@ -85,7 +85,7 @@ enum WebAction {
class WebEngineUrlRequestInterceptor : public QWebEngineUrlRequestInterceptor
{
public:
WebEngineUrlRequestInterceptor(BrowserView *parent) :
explicit WebEngineUrlRequestInterceptor(BrowserView *parent) :
QWebEngineUrlRequestInterceptor(parent),
m_parent(parent)
{
@@ -156,7 +156,7 @@ public:
using BaseType = Py::PythonExtension<BrowserViewPy>;
static void init_type(); // announce properties and methods
BrowserViewPy(BrowserView* view);
explicit BrowserViewPy(BrowserView* view);
~BrowserViewPy() override;
Py::Object repr() override;

View File

@@ -56,7 +56,7 @@ class WebGuiExport WebView : public QWebView
Q_OBJECT
public:
WebView(QWidget *parent = nullptr);
explicit WebView(QWidget *parent = nullptr);
protected:
void mousePressEvent(QMouseEvent *event) override;
@@ -84,7 +84,7 @@ class WebGuiExport BrowserView : public Gui::MDIView,
TYPESYSTEM_HEADER_WITH_OVERRIDE();
public:
BrowserView(QWidget* parent);
explicit BrowserView(QWidget* parent);
~BrowserView() override;
void load(const char* URL);

View File

@@ -38,7 +38,7 @@ namespace WebGui {
Q_OBJECT
public:
FcCookieJar(QObject* parent = nullptr);
explicit FcCookieJar(QObject* parent = nullptr);
~FcCookieJar() override;
bool setCookiesFromUrl(const QList<QNetworkCookie>&, const QUrl&) override;