mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-27 20:49:55 +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:
@ -21,7 +21,7 @@
|
||||
#include "awdebug.h"
|
||||
|
||||
|
||||
LoadSource::LoadSource(QObject *parent, const QStringList args)
|
||||
LoadSource::LoadSource(QObject *parent, const QStringList &args)
|
||||
: AbstractExtSysMonSource(parent, args)
|
||||
{
|
||||
Q_ASSERT(args.count() == 0);
|
||||
@ -35,16 +35,17 @@ LoadSource::~LoadSource()
|
||||
}
|
||||
|
||||
|
||||
QVariant LoadSource::data(QString source)
|
||||
QVariant LoadSource::data(const QString &source)
|
||||
{
|
||||
qCDebug(LOG_ESS) << "Source" << source;
|
||||
|
||||
source.remove(QString("load/load"));
|
||||
return source.toInt();
|
||||
auto data = source;
|
||||
data.remove("load/load");
|
||||
return data.toInt();
|
||||
}
|
||||
|
||||
|
||||
QVariantMap LoadSource::initialData(QString source) const
|
||||
QVariantMap LoadSource::initialData(const QString &source) const
|
||||
{
|
||||
qCDebug(LOG_ESS) << "Source" << source;
|
||||
|
||||
|
Reference in New Issue
Block a user