mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-14 22:35:49 +00:00
fix some found warning
This commit is contained in:
@ -61,7 +61,7 @@ QStringList AWAbstractPairHelper::values() const
|
||||
QSet<QString> AWAbstractPairHelper::valuesSet() const
|
||||
{
|
||||
auto values = m_pairs.values();
|
||||
return QSet(values.cbegin(), values.cend());
|
||||
return {values.cbegin(), values.cend()};
|
||||
}
|
||||
|
||||
|
||||
|
@ -38,7 +38,7 @@ public:
|
||||
Q_INVOKABLE void sendBugReport(const QString &_title, const QString &_body);
|
||||
|
||||
signals:
|
||||
void replyReceived(const int _number, const QString &_url);
|
||||
void replyReceived(int _number, const QString &_url);
|
||||
|
||||
private slots:
|
||||
void issueReplyRecieved(QNetworkReply *_reply);
|
||||
|
@ -74,5 +74,5 @@ QStringList AWCustomKeysHelper::leftKeys()
|
||||
|
||||
QStringList AWCustomKeysHelper::rightKeys()
|
||||
{
|
||||
return QStringList();
|
||||
return {};
|
||||
}
|
||||
|
@ -20,7 +20,6 @@
|
||||
#include <Plasma/DataContainer>
|
||||
|
||||
#include "awdebug.h"
|
||||
#include "awkeys.h"
|
||||
|
||||
|
||||
AWDataEngineAggregator::AWDataEngineAggregator(QObject *_parent)
|
||||
|
@ -38,7 +38,7 @@ AWDBusAdaptor::~AWDBusAdaptor()
|
||||
}
|
||||
|
||||
|
||||
QStringList AWDBusAdaptor::ActiveServices() const
|
||||
QStringList AWDBusAdaptor::ActiveServices()
|
||||
{
|
||||
QDBusMessage listServices = QDBusConnection::sessionBus().interface()->call(QDBus::BlockWithGui, "ListNames");
|
||||
if (listServices.arguments().isEmpty()) {
|
||||
|
@ -37,11 +37,11 @@ public:
|
||||
|
||||
public slots:
|
||||
// get methods
|
||||
QStringList ActiveServices() const;
|
||||
QString Info(const QString &key) const;
|
||||
QStringList Keys(const QString ®exp) const;
|
||||
QString Value(const QString &key) const;
|
||||
qlonglong WhoAmI() const;
|
||||
[[nodiscard]] static QStringList ActiveServices();
|
||||
[[nodiscard]] QString Info(const QString &key) const;
|
||||
[[nodiscard]] QStringList Keys(const QString ®exp) const;
|
||||
[[nodiscard]] QString Value(const QString &key) const;
|
||||
[[nodiscard]] qlonglong WhoAmI() const;
|
||||
// set methods
|
||||
void SetLogLevel(const QString &what, int level);
|
||||
void SetLogLevel(const QString &what, const QString &level, bool enabled);
|
||||
|
@ -102,7 +102,7 @@ void AWFormatterHelper::editPairs()
|
||||
|
||||
QStringList AWFormatterHelper::leftKeys()
|
||||
{
|
||||
return QStringList();
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
|
@ -18,7 +18,6 @@
|
||||
#include "awkeyoperations.h"
|
||||
|
||||
#include <QDir>
|
||||
#include <QJSEngine>
|
||||
#include <QRegExp>
|
||||
#include <QThread>
|
||||
|
||||
|
@ -58,7 +58,7 @@ public:
|
||||
public slots:
|
||||
void dataUpdated(const QString &_sourceName, const Plasma::DataEngine::Data &_data);
|
||||
// dummy method required by DataEngine connections
|
||||
static void modelChanged(QString, QAbstractItemModel *){};
|
||||
static void modelChanged(const QString &, QAbstractItemModel *){};
|
||||
|
||||
signals:
|
||||
void dropSourceFromDataengine(const QString &_source);
|
||||
|
Reference in New Issue
Block a user