QtNetwork: make some constructors explicit
This is a semi-automatic search, so I'm reasonably sure that all the exported ones have been caught. Change-Id: Ia00eb9194a5f64002bd7e7b894abf6333d1b825e Reviewed-by: Jonas Gastal <jgastal@profusion.mobi> Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
This commit is contained in:
parent
08790636f2
commit
cd27535ca0
@ -92,8 +92,8 @@ public:
|
||||
AlternativeType
|
||||
};
|
||||
|
||||
QHttpMultiPart(QObject *parent = 0);
|
||||
QHttpMultiPart(ContentType contentType, QObject *parent = 0);
|
||||
explicit QHttpMultiPart(QObject *parent = 0);
|
||||
explicit QHttpMultiPart(ContentType contentType, QObject *parent = 0);
|
||||
~QHttpMultiPart();
|
||||
|
||||
void append(const QHttpPart &httpPart);
|
||||
|
@ -66,7 +66,7 @@ public:
|
||||
Full
|
||||
};
|
||||
|
||||
QNetworkCookie(const QByteArray &name = QByteArray(), const QByteArray &value = QByteArray());
|
||||
explicit QNetworkCookie(const QByteArray &name = QByteArray(), const QByteArray &value = QByteArray());
|
||||
QNetworkCookie(const QNetworkCookie &other);
|
||||
~QNetworkCookie();
|
||||
QNetworkCookie &operator=(const QNetworkCookie &other);
|
||||
|
@ -57,7 +57,7 @@ class Q_NETWORK_EXPORT QNetworkCookieJar: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
QNetworkCookieJar(QObject *parent = 0);
|
||||
explicit QNetworkCookieJar(QObject *parent = 0);
|
||||
virtual ~QNetworkCookieJar();
|
||||
|
||||
virtual QList<QNetworkCookie> cookiesForUrl(const QUrl &url) const;
|
||||
|
@ -155,7 +155,7 @@ Q_SIGNALS:
|
||||
void downloadProgress(qint64 bytesReceived, qint64 bytesTotal);
|
||||
|
||||
protected:
|
||||
QNetworkReply(QObject *parent = 0);
|
||||
explicit QNetworkReply(QObject *parent = 0);
|
||||
QNetworkReply(QNetworkReplyPrivate &dd, QObject *parent);
|
||||
virtual qint64 writeData(const char *data, qint64 len);
|
||||
|
||||
|
@ -191,7 +191,7 @@ public:
|
||||
TXT = 16
|
||||
};
|
||||
|
||||
QDnsLookup(QObject *parent = 0);
|
||||
explicit QDnsLookup(QObject *parent = 0);
|
||||
QDnsLookup(Type type, const QString &name, QObject *parent = 0);
|
||||
~QDnsLookup();
|
||||
|
||||
|
@ -63,7 +63,7 @@ public:
|
||||
UnknownError
|
||||
};
|
||||
|
||||
QHostInfo(int lookupId = -1);
|
||||
explicit QHostInfo(int lookupId = -1);
|
||||
QHostInfo(const QHostInfo &d);
|
||||
QHostInfo &operator=(const QHostInfo &d);
|
||||
~QHostInfo();
|
||||
|
@ -68,10 +68,10 @@ public:
|
||||
};
|
||||
|
||||
QNetworkProxyQuery();
|
||||
QNetworkProxyQuery(const QUrl &requestUrl, QueryType queryType = UrlRequest);
|
||||
explicit QNetworkProxyQuery(const QUrl &requestUrl, QueryType queryType = UrlRequest);
|
||||
QNetworkProxyQuery(const QString &hostname, int port, const QString &protocolTag = QString(),
|
||||
QueryType queryType = TcpSocket);
|
||||
QNetworkProxyQuery(quint16 bindPort, const QString &protocolTag = QString(),
|
||||
explicit QNetworkProxyQuery(quint16 bindPort, const QString &protocolTag = QString(),
|
||||
QueryType queryType = TcpServer);
|
||||
QNetworkProxyQuery(const QNetworkProxyQuery &other);
|
||||
#ifndef QT_NO_BEARERMANAGEMENT
|
||||
|
@ -74,7 +74,7 @@ public:
|
||||
};
|
||||
Q_DECLARE_FLAGS(SocketOptions, SocketOption)
|
||||
|
||||
QLocalServer(QObject *parent = 0);
|
||||
explicit QLocalServer(QObject *parent = 0);
|
||||
~QLocalServer();
|
||||
|
||||
void close();
|
||||
|
@ -82,8 +82,8 @@ public:
|
||||
EmailAddress
|
||||
};
|
||||
|
||||
QSslCertificate(QIODevice *device, QSsl::EncodingFormat format = QSsl::Pem);
|
||||
QSslCertificate(const QByteArray &data = QByteArray(), QSsl::EncodingFormat format = QSsl::Pem);
|
||||
explicit QSslCertificate(QIODevice *device, QSsl::EncodingFormat format = QSsl::Pem);
|
||||
explicit QSslCertificate(const QByteArray &data = QByteArray(), QSsl::EncodingFormat format = QSsl::Pem);
|
||||
QSslCertificate(const QSslCertificate &other);
|
||||
~QSslCertificate();
|
||||
QSslCertificate &operator=(const QSslCertificate &other);
|
||||
|
@ -80,7 +80,7 @@ public:
|
||||
AutoVerifyPeer
|
||||
};
|
||||
|
||||
QSslSocket(QObject *parent = 0);
|
||||
explicit QSslSocket(QObject *parent = 0);
|
||||
~QSslSocket();
|
||||
void resume(); // to continue after proxy authentication required, SSL errors etc.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user