kio: require all KIO::Connection::send() arguments

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-05-02 11:28:50 +03:00
parent d006f066ee
commit 0fece01714

View file

@ -86,8 +86,8 @@ namespace KIO {
* Creates a new connection.
* @see connectToRemote, listenForRemote
*/
explicit Connection(QObject *parent = 0);
virtual ~Connection();
explicit Connection(QObject *parent = nullptr);
~Connection();
/**
* Connects to the remote address.
@ -107,7 +107,7 @@ namespace KIO {
* @param arr the bytes to send
* @return true if successful, false otherwise
*/
bool send(int cmd, const QByteArray &arr = QByteArray());
bool send(int cmd, const QByteArray &arr);
/**
* Sends the given command immediately.