Daemon: Do not return value by const ref

We operate on a QSharedData object and thus can trivially make a copy. We generally don't use use const refs as return values in KDE APIs unless there is a compelling reason to do so
This commit is contained in:
Alexander Lohnau 2023-08-12 15:30:37 +02:00 committed by Albert Vaca Cintora
parent 890299943d
commit a1a7e57011
2 changed files with 2 additions and 2 deletions

View file

@ -123,7 +123,7 @@ Device *Daemon::getDevice(const QString &deviceId)
return nullptr;
}
const QSet<LinkProvider *> &Daemon::getLinkProviders() const
QSet<LinkProvider *> Daemon::getLinkProviders() const
{
return d->m_linkProviders;
}

View file

@ -43,7 +43,7 @@ public:
Device *getDevice(const QString &deviceId);
const QSet<LinkProvider *> &getLinkProviders() const;
QSet<LinkProvider *> getLinkProviders() const;
QStringList pairingRequests() const;