mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-14 06:15:49 +00:00
massive changes inside
* use pass by ref instead of by value if possible * use reference in interation over collections * fix no tag inserting
This commit is contained in:
@ -23,7 +23,7 @@
|
||||
#include "awdebug.h"
|
||||
|
||||
|
||||
DesktopSource::DesktopSource(QObject *parent, const QStringList args)
|
||||
DesktopSource::DesktopSource(QObject *parent, const QStringList &args)
|
||||
: AbstractExtSysMonSource(parent, args)
|
||||
{
|
||||
Q_ASSERT(args.count() == 0);
|
||||
@ -37,7 +37,7 @@ DesktopSource::~DesktopSource()
|
||||
}
|
||||
|
||||
|
||||
QVariant DesktopSource::data(QString source)
|
||||
QVariant DesktopSource::data(const QString &source)
|
||||
{
|
||||
qCDebug(LOG_ESS) << "Source" << source;
|
||||
|
||||
@ -61,7 +61,7 @@ QVariant DesktopSource::data(QString source)
|
||||
}
|
||||
|
||||
|
||||
QVariantMap DesktopSource::initialData(QString source) const
|
||||
QVariantMap DesktopSource::initialData(const QString &source) const
|
||||
{
|
||||
qCDebug(LOG_ESS) << "Source" << source;
|
||||
|
||||
|
Reference in New Issue
Block a user