From 0fece01714027c8ffea6ba975055d928ac02b342 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Thu, 2 May 2024 11:28:50 +0300 Subject: [PATCH] kio: require all KIO::Connection::send() arguments Signed-off-by: Ivailo Monev --- kio/kio/connection_p.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kio/kio/connection_p.h b/kio/kio/connection_p.h index 4346ec83..7c0d22a1 100644 --- a/kio/kio/connection_p.h +++ b/kio/kio/connection_p.h @@ -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.