kio: const-ify KIO::Slave::suspended() method

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-06-03 12:34:19 +03:00
parent 03a53c8cb9
commit a5ae838a0e
2 changed files with 3 additions and 3 deletions

View file

@ -289,9 +289,9 @@ void Slave::resume()
d->connection->resume();
}
bool Slave::suspended()
bool Slave::suspended() const
{
Q_D(Slave);
Q_D(const Slave);
return d->connection->suspended();
}

View file

@ -146,7 +146,7 @@ public:
* Tells whether the kioslave is suspended.
* @return true if the kioslave is suspended.
*/
bool suspended();
bool suspended() const;
/**
* Sends the given command to the kioslave.