Mod: Single arg ctors must be explicit
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user