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:
parent
890299943d
commit
a1a7e57011
2 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,7 @@ Device *Daemon::getDevice(const QString &deviceId)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
const QSet<LinkProvider *> &Daemon::getLinkProviders() const
|
QSet<LinkProvider *> Daemon::getLinkProviders() const
|
||||||
{
|
{
|
||||||
return d->m_linkProviders;
|
return d->m_linkProviders;
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ public:
|
||||||
|
|
||||||
Device *getDevice(const QString &deviceId);
|
Device *getDevice(const QString &deviceId);
|
||||||
|
|
||||||
const QSet<LinkProvider *> &getLinkProviders() const;
|
QSet<LinkProvider *> getLinkProviders() const;
|
||||||
|
|
||||||
QStringList pairingRequests() const;
|
QStringList pairingRequests() const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue