From 793346ddf4fa28d94bf4a37f6c2974bbf0385e96 Mon Sep 17 00:00:00 2001 From: Evgenii Alekseev Date: Tue, 30 Apr 2024 19:59:42 +0300 Subject: [PATCH] fix codefactor warnings --- .../awesome-widget/plugin/awpairconfigfactory.h | 2 -- .../plugin/formatters/awpluginformatter.h | 1 - .../plugin/formatters/awpluginformatterac.h | 1 - .../plugin/formatters/awpluginformattercustom.h | 1 - .../plugin/formatters/awpluginformatterdouble.h | 1 - .../plugin/formatters/awpluginformatterfloat.h | 1 - .../formatters/awpluginformatterfloatprecise.h | 1 - .../plugin/formatters/awpluginformatterinteger.h | 1 - .../formatters/awpluginformatterintegershort.h | 1 - .../formatters/awpluginformatterintegerwide.h | 1 - .../plugin/formatters/awpluginformatterlist.h | 1 - .../plugin/formatters/awpluginformattermemory.h | 1 - .../plugin/formatters/awpluginformattermemorygb.h | 1 - .../plugin/formatters/awpluginformattermemorymb.h | 1 - .../plugin/formatters/awpluginformatternet.h | 1 - .../plugin/formatters/awpluginformatternetunits.h | 1 - .../plugin/formatters/awpluginformatternoformat.h | 1 - .../formatters/awpluginformattertemperature.h | 1 - .../plugin/formatters/awpluginformattertime.h | 1 - .../formatters/awpluginformattertimecustom.h | 1 - .../plugin/formatters/awpluginformattertimeiso.h | 1 - .../plugin/formatters/awpluginformattertimelong.h | 1 - .../plugin/formatters/awpluginformattertimeshort.h | 1 - .../plugin/formatters/awpluginformatteruptime.h | 1 - .../plugin/matchers/awpluginmatcher.h | 1 - .../plugin/matchers/awpluginmatcherac.h | 1 - .../plugin/matchers/awpluginmatcherbattery.h | 1 - .../plugin/matchers/awpluginmatcherbrightness.h | 1 - .../plugin/matchers/awpluginmatchercpu.h | 1 - .../plugin/matchers/awpluginmatchercpucore.h | 1 - .../plugin/matchers/awpluginmatchercpufrequency.h | 1 - .../matchers/awpluginmatchercpufrequencycore.h | 1 - .../plugin/matchers/awpluginmatchercustom.h | 1 - .../plugin/matchers/awpluginmatcherdesktop.h | 1 - .../plugin/matchers/awpluginmatcherdesktopcount.h | 1 - .../plugin/matchers/awpluginmatcherdesktopnumber.h | 1 - .../plugin/matchers/awpluginmatchergpu.h | 1 - .../plugin/matchers/awpluginmatchergpucore.h | 1 - .../matchers/awpluginmatchergputemperature.h | 1 - .../plugin/matchers/awpluginmatcherhdd.h | 1 - .../plugin/matchers/awpluginmatcherhddfree.h | 1 - .../plugin/matchers/awpluginmatcherhddread.h | 1 - .../plugin/matchers/awpluginmatcherhddtotal.h | 1 - .../plugin/matchers/awpluginmatcherhddused.h | 1 - .../plugin/matchers/awpluginmatcherhddwrite.h | 1 - .../plugin/matchers/awpluginmatcherload.h | 1 - .../plugin/matchers/awpluginmatcherloadaverage.h | 1 - .../plugin/matchers/awpluginmatchermemory.h | 1 - .../matchers/awpluginmatchermemoryapplication.h | 1 - .../plugin/matchers/awpluginmatchermemoryfree.h | 1 - .../plugin/matchers/awpluginmatchermemorytotal.h | 1 - .../plugin/matchers/awpluginmatchermemoryused.h | 1 - .../plugin/matchers/awpluginmatchernetwork.h | 1 - .../plugin/matchers/awpluginmatchernetworkdevice.h | 1 - .../plugin/matchers/awpluginmatchernetworkssid.h | 1 - .../plugin/matchers/awpluginmatchernetworktotal.h | 1 - .../plugin/matchers/awpluginmatcherplayer.h | 1 - .../plugin/matchers/awpluginmatcherps.h | 1 - .../plugin/matchers/awpluginmatcherpsprocesses.h | 1 - .../plugin/matchers/awpluginmatcherpstotal.h | 1 - .../plugin/matchers/awpluginmatcherquotes.h | 1 - .../plugin/matchers/awpluginmatcherrequest.h | 1 - .../plugin/matchers/awpluginmatchersensors.h | 1 - .../plugin/matchers/awpluginmatcherswap.h | 1 - .../plugin/matchers/awpluginmatcherswapfree.h | 1 - .../plugin/matchers/awpluginmatcherswaptotal.h | 1 - .../plugin/matchers/awpluginmatcherswapused.h | 1 - .../plugin/matchers/awpluginmatchertime.h | 1 - .../plugin/matchers/awpluginmatcherupgrade.h | 1 - .../plugin/matchers/awpluginmatcheruptime.h | 1 - .../plugin/matchers/awpluginmatchervolume.h | 1 - .../plugin/matchers/awpluginmatcherweather.h | 1 - sources/extsysmonsources/abstractextsysmonsource.h | 12 ++++++------ sources/extsysmonsources/batterysource.h | 2 +- sources/extsysmonsources/customsource.h | 2 +- sources/extsysmonsources/desktopsource.h | 2 +- sources/extsysmonsources/loadsource.h | 2 +- sources/extsysmonsources/networksource.h | 2 +- sources/extsysmonsources/playersource.h | 14 +++++++------- sources/extsysmonsources/processessource.h | 2 +- sources/extsysmonsources/quotessource.h | 2 +- sources/extsysmonsources/requestsource.h | 2 +- sources/extsysmonsources/systeminfosource.h | 13 +++++++------ sources/extsysmonsources/timesource.h | 2 +- sources/extsysmonsources/upgradesource.h | 2 +- sources/extsysmonsources/weathersource.h | 2 +- 86 files changed, 31 insertions(+), 103 deletions(-) diff --git a/sources/awesome-widget/plugin/awpairconfigfactory.h b/sources/awesome-widget/plugin/awpairconfigfactory.h index 8df7e39..2614011 100644 --- a/sources/awesome-widget/plugin/awpairconfigfactory.h +++ b/sources/awesome-widget/plugin/awpairconfigfactory.h @@ -29,6 +29,4 @@ public: ~AWPairConfigFactory() override = default; Q_INVOKABLE static void showFormatterDialog(const QStringList &_keys); Q_INVOKABLE static void showKeysDialog(const QStringList &_keys); - -private: }; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformatter.h b/sources/awesome-widget/plugin/formatters/awpluginformatter.h index 12b27a1..57b4789 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformatter.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformatter.h @@ -38,7 +38,6 @@ public: template class AWPluginFormatter : public AWPluginFormaterInterface { - public: static constexpr double KBinBytes = 1024.0; static constexpr double MBinBytes = 1024.0 * KBinBytes; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformatterac.h b/sources/awesome-widget/plugin/formatters/awpluginformatterac.h index bff2c5f..e4ffe2a 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformatterac.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformatterac.h @@ -22,7 +22,6 @@ class AWPluginFormatterAC : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &_settings) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformattercustom.h b/sources/awesome-widget/plugin/formatters/awpluginformattercustom.h index 5793343..3a8a315 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformattercustom.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformattercustom.h @@ -22,7 +22,6 @@ class AWPluginFormatterCustom : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &_key, const AWPluginFormatSettings &_settings) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformatterdouble.h b/sources/awesome-widget/plugin/formatters/awpluginformatterdouble.h index 8b1980d..61cecff 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformatterdouble.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformatterdouble.h @@ -22,7 +22,6 @@ class AWPluginFormatterDouble : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformatterfloat.h b/sources/awesome-widget/plugin/formatters/awpluginformatterfloat.h index bc42b90..c4506b8 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformatterfloat.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformatterfloat.h @@ -22,7 +22,6 @@ class AWPluginFormatterFloat : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformatterfloatprecise.h b/sources/awesome-widget/plugin/formatters/awpluginformatterfloatprecise.h index 4f24626..585239e 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformatterfloatprecise.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformatterfloatprecise.h @@ -22,7 +22,6 @@ class AWPluginFormatterFloatPrecise : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformatterinteger.h b/sources/awesome-widget/plugin/formatters/awpluginformatterinteger.h index f765e88..3ecdf24 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformatterinteger.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformatterinteger.h @@ -22,7 +22,6 @@ class AWPluginFormatterInteger : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformatterintegershort.h b/sources/awesome-widget/plugin/formatters/awpluginformatterintegershort.h index b306f82..c610601 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformatterintegershort.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformatterintegershort.h @@ -22,7 +22,6 @@ class AWPluginFormatterIntegerShort : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformatterintegerwide.h b/sources/awesome-widget/plugin/formatters/awpluginformatterintegerwide.h index edaff68..f701e11 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformatterintegerwide.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformatterintegerwide.h @@ -22,7 +22,6 @@ class AWPluginFormatterIntegerWide : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformatterlist.h b/sources/awesome-widget/plugin/formatters/awpluginformatterlist.h index 65b948c..f9498a7 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformatterlist.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformatterlist.h @@ -22,7 +22,6 @@ class AWPluginFormatterList : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformattermemory.h b/sources/awesome-widget/plugin/formatters/awpluginformattermemory.h index 1fb2ba4..c3b8cad 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformattermemory.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformattermemory.h @@ -22,7 +22,6 @@ class AWPluginFormatterMemory : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformattermemorygb.h b/sources/awesome-widget/plugin/formatters/awpluginformattermemorygb.h index 6a78d27..b316882 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformattermemorygb.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformattermemorygb.h @@ -22,7 +22,6 @@ class AWPluginFormatterMemoryGB : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformattermemorymb.h b/sources/awesome-widget/plugin/formatters/awpluginformattermemorymb.h index 8734408..a114fbf 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformattermemorymb.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformattermemorymb.h @@ -22,7 +22,6 @@ class AWPluginFormatterMemoryMB : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformatternet.h b/sources/awesome-widget/plugin/formatters/awpluginformatternet.h index d0464d7..dfd891a 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformatternet.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformatternet.h @@ -22,7 +22,6 @@ class AWPluginFormatterNet : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformatternetunits.h b/sources/awesome-widget/plugin/formatters/awpluginformatternetunits.h index ba17855..fd0d149 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformatternetunits.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformatternetunits.h @@ -22,7 +22,6 @@ class AWPluginFormatterNetUnits : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &_settings) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformatternoformat.h b/sources/awesome-widget/plugin/formatters/awpluginformatternoformat.h index db1fb09..f74872a 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformatternoformat.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformatternoformat.h @@ -22,7 +22,6 @@ class AWPluginFormatterNoFormat : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformattertemperature.h b/sources/awesome-widget/plugin/formatters/awpluginformattertemperature.h index 3f9e0af..9360c6a 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformattertemperature.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformattertemperature.h @@ -22,7 +22,6 @@ class AWPluginFormatterTemperature : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &_settings) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformattertime.h b/sources/awesome-widget/plugin/formatters/awpluginformattertime.h index 7be694b..8b19a50 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformattertime.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformattertime.h @@ -22,7 +22,6 @@ class AWPluginFormatterTime : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformattertimecustom.h b/sources/awesome-widget/plugin/formatters/awpluginformattertimecustom.h index bbc35f6..6a6e978 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformattertimecustom.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformattertimecustom.h @@ -24,7 +24,6 @@ class AWPluginFormatterTimeCustom : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &_settings) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformattertimeiso.h b/sources/awesome-widget/plugin/formatters/awpluginformattertimeiso.h index 896396e..a03aba0 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformattertimeiso.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformattertimeiso.h @@ -22,7 +22,6 @@ class AWPluginFormatterTimeISO : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformattertimelong.h b/sources/awesome-widget/plugin/formatters/awpluginformattertimelong.h index a4b873d..12849a0 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformattertimelong.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformattertimelong.h @@ -22,7 +22,6 @@ class AWPluginFormatterTimeLong : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &_settings) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformattertimeshort.h b/sources/awesome-widget/plugin/formatters/awpluginformattertimeshort.h index ad5bf5a..32b161a 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformattertimeshort.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformattertimeshort.h @@ -22,7 +22,6 @@ class AWPluginFormatterTimeShort : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &_settings) const override; diff --git a/sources/awesome-widget/plugin/formatters/awpluginformatteruptime.h b/sources/awesome-widget/plugin/formatters/awpluginformatteruptime.h index 25d17de..a4a2673 100644 --- a/sources/awesome-widget/plugin/formatters/awpluginformatteruptime.h +++ b/sources/awesome-widget/plugin/formatters/awpluginformatteruptime.h @@ -22,7 +22,6 @@ class AWPluginFormatterUptime : public AWPluginFormatter { - public: [[nodiscard]] QString format(const QVariant &_value, const QString &, const AWPluginFormatSettings &_settings) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcher.h b/sources/awesome-widget/plugin/matchers/awpluginmatcher.h index d71fc78..3b5bfeb 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcher.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcher.h @@ -40,7 +40,6 @@ public: template class AWPluginMatcher : public AWPluginMatcherInterface { - public: AWPluginMatcher(AWPluginMatcher &) = delete; void operator=(const AWPluginMatcher &) = delete; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherac.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherac.h index 787af93..c4b0147 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherac.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherac.h @@ -22,7 +22,6 @@ class AWPluginMatcherAC : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherbattery.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherbattery.h index a87a06e..15a1736 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherbattery.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherbattery.h @@ -22,7 +22,6 @@ class AWPluginMatcherBattery : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherbrightness.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherbrightness.h index 632c6c9..a93f7b7 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherbrightness.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherbrightness.h @@ -22,7 +22,6 @@ class AWPluginMatcherBrightness : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatchercpu.h b/sources/awesome-widget/plugin/matchers/awpluginmatchercpu.h index ba0dfe9..60e8700 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatchercpu.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatchercpu.h @@ -22,7 +22,6 @@ class AWPluginMatcherCPU : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatchercpucore.h b/sources/awesome-widget/plugin/matchers/awpluginmatchercpucore.h index 829c25e..ef3d483 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatchercpucore.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatchercpucore.h @@ -22,7 +22,6 @@ class AWPluginMatcherCPUCore : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatchercpufrequency.h b/sources/awesome-widget/plugin/matchers/awpluginmatchercpufrequency.h index 2a522fa..86720bb 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatchercpufrequency.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatchercpufrequency.h @@ -22,7 +22,6 @@ class AWPluginMatcherCPUFrequency : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatchercpufrequencycore.h b/sources/awesome-widget/plugin/matchers/awpluginmatchercpufrequencycore.h index 83f3d55..88d5ea2 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatchercpufrequencycore.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatchercpufrequencycore.h @@ -22,7 +22,6 @@ class AWPluginMatcherCPUFrequencyCore : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatchercustom.h b/sources/awesome-widget/plugin/matchers/awpluginmatchercustom.h index efdde9c..b02aa01 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatchercustom.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatchercustom.h @@ -22,7 +22,6 @@ class AWPluginMatcherCustom : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherdesktop.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherdesktop.h index 279afd5..66fe7cc 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherdesktop.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherdesktop.h @@ -22,7 +22,6 @@ class AWPluginMatcherDesktop : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherdesktopcount.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherdesktopcount.h index d006198..09e4807 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherdesktopcount.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherdesktopcount.h @@ -22,7 +22,6 @@ class AWPluginMatcherDesktopCount : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherdesktopnumber.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherdesktopnumber.h index 3ddcaf4..59144b9 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherdesktopnumber.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherdesktopnumber.h @@ -22,7 +22,6 @@ class AWPluginMatcherDesktopNumber : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatchergpu.h b/sources/awesome-widget/plugin/matchers/awpluginmatchergpu.h index 7fece4f..e4ba867 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatchergpu.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatchergpu.h @@ -22,7 +22,6 @@ class AWPluginMatcherGPU : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatchergpucore.h b/sources/awesome-widget/plugin/matchers/awpluginmatchergpucore.h index dd0c287..1d6ce6f 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatchergpucore.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatchergpucore.h @@ -22,7 +22,6 @@ class AWPluginMatcherGPUCore : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &_settings) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatchergputemperature.h b/sources/awesome-widget/plugin/matchers/awpluginmatchergputemperature.h index 43ec092..f5f4baf 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatchergputemperature.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatchergputemperature.h @@ -22,7 +22,6 @@ class AWPluginMatcherGPUTemperature : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &_settings) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherhdd.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherhdd.h index a59fef0..6c6b400 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherhdd.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherhdd.h @@ -22,7 +22,6 @@ class AWPluginMatcherHDD : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &_settings) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherhddfree.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherhddfree.h index 9e6052e..46f146d 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherhddfree.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherhddfree.h @@ -22,7 +22,6 @@ class AWPluginMatcherHDDFree : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &_settings) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherhddread.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherhddread.h index 2b062b7..69ebc80 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherhddread.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherhddread.h @@ -22,7 +22,6 @@ class AWPluginMatcherHDDRead : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &_settings) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherhddtotal.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherhddtotal.h index 2df48c7..e6bacbc 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherhddtotal.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherhddtotal.h @@ -22,7 +22,6 @@ class AWPluginMatcherHDDTotal : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &_settings) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherhddused.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherhddused.h index e3c9792..489c0c4 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherhddused.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherhddused.h @@ -22,7 +22,6 @@ class AWPluginMatcherHDDUsed : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &_settings) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherhddwrite.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherhddwrite.h index cb849a7..5ed23cb 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherhddwrite.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherhddwrite.h @@ -22,7 +22,6 @@ class AWPluginMatcherHDDWrite : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &_settings) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherload.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherload.h index 4d121f6..293f662 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherload.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherload.h @@ -22,7 +22,6 @@ class AWPluginMatcherLoad : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherloadaverage.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherloadaverage.h index 4389b77..ada9571 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherloadaverage.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherloadaverage.h @@ -22,7 +22,6 @@ class AWPluginMatcherLoadAverage : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatchermemory.h b/sources/awesome-widget/plugin/matchers/awpluginmatchermemory.h index 69c71d9..6ff9191 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatchermemory.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatchermemory.h @@ -22,7 +22,6 @@ class AWPluginMatcherMemory : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatchermemoryapplication.h b/sources/awesome-widget/plugin/matchers/awpluginmatchermemoryapplication.h index a4d1940..873c6ad 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatchermemoryapplication.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatchermemoryapplication.h @@ -22,7 +22,6 @@ class AWPluginMatcherMemoryApplication : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatchermemoryfree.h b/sources/awesome-widget/plugin/matchers/awpluginmatchermemoryfree.h index 642cbef..4051fe4 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatchermemoryfree.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatchermemoryfree.h @@ -22,7 +22,6 @@ class AWPluginMatcherMemoryFree : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatchermemorytotal.h b/sources/awesome-widget/plugin/matchers/awpluginmatchermemorytotal.h index 262602a..7e0a2fd 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatchermemorytotal.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatchermemorytotal.h @@ -22,7 +22,6 @@ class AWPluginMatcherMemoryTotal : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatchermemoryused.h b/sources/awesome-widget/plugin/matchers/awpluginmatchermemoryused.h index 09ac7db..d6f7d97 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatchermemoryused.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatchermemoryused.h @@ -22,7 +22,6 @@ class AWPluginMatcherMemoryUsed : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatchernetwork.h b/sources/awesome-widget/plugin/matchers/awpluginmatchernetwork.h index 7ac5200..a7ec5bb 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatchernetwork.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatchernetwork.h @@ -22,7 +22,6 @@ class AWPluginMatcherNetwork : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &_settings) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatchernetworkdevice.h b/sources/awesome-widget/plugin/matchers/awpluginmatchernetworkdevice.h index eae282a..03bfd99 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatchernetworkdevice.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatchernetworkdevice.h @@ -22,7 +22,6 @@ class AWPluginMatcherNetworkDevice : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatchernetworkssid.h b/sources/awesome-widget/plugin/matchers/awpluginmatchernetworkssid.h index 95d39d7..369ce8e 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatchernetworkssid.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatchernetworkssid.h @@ -22,7 +22,6 @@ class AWPluginMatcherNetworkSSID : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatchernetworktotal.h b/sources/awesome-widget/plugin/matchers/awpluginmatchernetworktotal.h index 8d328e6..e7603ff 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatchernetworktotal.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatchernetworktotal.h @@ -22,7 +22,6 @@ class AWPluginMatcherNetworkTotal : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &_settings) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherplayer.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherplayer.h index 1a9eae1..418d8bf 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherplayer.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherplayer.h @@ -22,7 +22,6 @@ class AWPluginMatcherPlayer : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherps.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherps.h index 0b2ef0e..4c90424 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherps.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherps.h @@ -22,7 +22,6 @@ class AWPluginMatcherPS : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherpsprocesses.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherpsprocesses.h index 879018b..228595e 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherpsprocesses.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherpsprocesses.h @@ -22,7 +22,6 @@ class AWPluginMatcherPSProcesses : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherpstotal.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherpstotal.h index f283def..0b0a896 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherpstotal.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherpstotal.h @@ -22,7 +22,6 @@ class AWPluginMatcherPSTotal : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherquotes.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherquotes.h index 42bb836..a39d778 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherquotes.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherquotes.h @@ -22,7 +22,6 @@ class AWPluginMatcherQuotes : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherrequest.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherrequest.h index f9e0b74..2d10b31 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherrequest.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherrequest.h @@ -22,7 +22,6 @@ class AWPluginMatcherRequest : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatchersensors.h b/sources/awesome-widget/plugin/matchers/awpluginmatchersensors.h index c2b878c..7447096 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatchersensors.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatchersensors.h @@ -22,7 +22,6 @@ class AWPluginMatcherSensors : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit _units, const AWPluginMatcherSettings &_settings) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherswap.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherswap.h index 574657b..7e81429 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherswap.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherswap.h @@ -22,7 +22,6 @@ class AWPluginMatcherSwap : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherswapfree.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherswapfree.h index c7dda8e..6198822 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherswapfree.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherswapfree.h @@ -22,7 +22,6 @@ class AWPluginMatcherSwapFree : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherswaptotal.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherswaptotal.h index e632700..dd9ce58 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherswaptotal.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherswaptotal.h @@ -22,7 +22,6 @@ class AWPluginMatcherSwapTotal : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherswapused.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherswapused.h index 51eea14..dfe0a52 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherswapused.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherswapused.h @@ -22,7 +22,6 @@ class AWPluginMatcherSwapUsed : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatchertime.h b/sources/awesome-widget/plugin/matchers/awpluginmatchertime.h index fb2829d..188ded0 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatchertime.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatchertime.h @@ -22,7 +22,6 @@ class AWPluginMatcherTime : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherupgrade.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherupgrade.h index 1e30945..2520c29 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherupgrade.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherupgrade.h @@ -22,7 +22,6 @@ class AWPluginMatcherUpgrade : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcheruptime.h b/sources/awesome-widget/plugin/matchers/awpluginmatcheruptime.h index 78b9f88..1d87282 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcheruptime.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcheruptime.h @@ -22,7 +22,6 @@ class AWPluginMatcherUptime : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatchervolume.h b/sources/awesome-widget/plugin/matchers/awpluginmatchervolume.h index 21565ff..9415f0f 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatchervolume.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatchervolume.h @@ -22,7 +22,6 @@ class AWPluginMatcherVolume : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/awesome-widget/plugin/matchers/awpluginmatcherweather.h b/sources/awesome-widget/plugin/matchers/awpluginmatcherweather.h index 4ed0877..34d0103 100644 --- a/sources/awesome-widget/plugin/matchers/awpluginmatcherweather.h +++ b/sources/awesome-widget/plugin/matchers/awpluginmatcherweather.h @@ -22,7 +22,6 @@ class AWPluginMatcherWeather : public AWPluginMatcher { - public: [[nodiscard]] QHash keys(const QString &_source, KSysGuard::Unit, const AWPluginMatcherSettings &) const override; diff --git a/sources/extsysmonsources/abstractextsysmonsource.h b/sources/extsysmonsources/abstractextsysmonsource.h index 7d9fa49..a040454 100644 --- a/sources/extsysmonsources/abstractextsysmonsource.h +++ b/sources/extsysmonsources/abstractextsysmonsource.h @@ -32,11 +32,11 @@ public: explicit AbstractExtSysMonSource(QObject *_parent); ~AbstractExtSysMonSource() override = default; - virtual QVariant data(const QString &_source) = 0; + [[nodiscard]] virtual QVariant data(const QString &_source) = 0; [[nodiscard]] virtual QHash sources() const = 0; - static int index(const QString &_source); + [[nodiscard]] static int index(const QString &_source); // safe value extractor - template static QVariantHash dataByItem(T *_extension, const QString &_source) + template [[nodiscard]] static QVariantHash dataByItem(T *_extension, const QString &_source) { auto idx = index(_source); if (idx == -1) @@ -45,9 +45,9 @@ public: auto item = _extension->itemByTagNumber(idx); return item ? item->run() : QVariantHash(); } - static KSysGuard::SensorInfo *makeSensorInfo(const QString &_name, QMetaType::Type _type, - KSysGuard::Unit _unit = KSysGuard::UnitNone, double _min = 0, - double _max = 0); + [[nodiscard]] static KSysGuard::SensorInfo *makeSensorInfo(const QString &_name, QMetaType::Type _type, + KSysGuard::Unit _unit = KSysGuard::UnitNone, + double _min = 0, double _max = 0); signals: void dataReceived(const QVariantHash &); diff --git a/sources/extsysmonsources/batterysource.h b/sources/extsysmonsources/batterysource.h index cf474c7..b4cacac 100644 --- a/sources/extsysmonsources/batterysource.h +++ b/sources/extsysmonsources/batterysource.h @@ -32,7 +32,7 @@ public: explicit BatterySource(QObject *_parent, QString _acpiPath); ~BatterySource() override = default; - QVariant data(const QString &_source) override; + [[nodiscard]] QVariant data(const QString &_source) override; void run(); [[nodiscard]] QHash sources() const override; diff --git a/sources/extsysmonsources/customsource.h b/sources/extsysmonsources/customsource.h index e4d59ad..c4a5ae0 100644 --- a/sources/extsysmonsources/customsource.h +++ b/sources/extsysmonsources/customsource.h @@ -32,7 +32,7 @@ class CustomSource : public AbstractExtSysMonSource public: explicit CustomSource(QObject *_parent); ~CustomSource() override = default; - QVariant data(const QString &_source) override; + [[nodiscard]] QVariant data(const QString &_source) override; [[nodiscard]] QHash sources() const override; private: diff --git a/sources/extsysmonsources/desktopsource.h b/sources/extsysmonsources/desktopsource.h index 2f8404f..43baeee 100644 --- a/sources/extsysmonsources/desktopsource.h +++ b/sources/extsysmonsources/desktopsource.h @@ -35,7 +35,7 @@ public: explicit DesktopSource(QObject *_parent); ~DesktopSource() override = default; - QVariant data(const QString &_source) override; + [[nodiscard]] QVariant data(const QString &_source) override; [[nodiscard]] QHash sources() const override; private: diff --git a/sources/extsysmonsources/loadsource.h b/sources/extsysmonsources/loadsource.h index ca3b0e0..cf3aae9 100644 --- a/sources/extsysmonsources/loadsource.h +++ b/sources/extsysmonsources/loadsource.h @@ -29,6 +29,6 @@ class LoadSource : public AbstractExtSysMonSource public: explicit LoadSource(QObject *_parent); ~LoadSource() override = default; - QVariant data(const QString &_source) override; + [[nodiscard]] QVariant data(const QString &_source) override; [[nodiscard]] QHash sources() const override; }; diff --git a/sources/extsysmonsources/networksource.h b/sources/extsysmonsources/networksource.h index 43da6ed..f4c52c4 100644 --- a/sources/extsysmonsources/networksource.h +++ b/sources/extsysmonsources/networksource.h @@ -31,7 +31,7 @@ class NetworkSource : public AbstractExtSysMonSource public: explicit NetworkSource(QObject *_parent); ~NetworkSource() override; - QVariant data(const QString &_source) override; + [[nodiscard]] QVariant data(const QString &_source) override; [[nodiscard]] QHash sources() const override; private slots: diff --git a/sources/extsysmonsources/playersource.h b/sources/extsysmonsources/playersource.h index 4642e9c..06c1ce1 100644 --- a/sources/extsysmonsources/playersource.h +++ b/sources/extsysmonsources/playersource.h @@ -36,13 +36,13 @@ public: explicit PlayerSource(QObject *_parent, QString _player, QString _mpdAddress, int _mpdPort, QString _mpris, int _symbols); ~PlayerSource() override; - QVariant data(const QString &_source) override; - static QString getAutoMpris(); + [[nodiscard]] QVariant data(const QString &_source) override; + [[nodiscard]] static QString getAutoMpris(); void run(); [[nodiscard]] QHash sources() const override; // additional method to build dynamic tags - static QString buildString(const QString &_current, const QString &_value, int _s); - static QString stripString(const QString &_value, int _s); + [[nodiscard]] static QString buildString(const QString &_current, const QString &_value, int _s); + [[nodiscard]] static QString stripString(const QString &_value, int _s); // additional test method [[nodiscard]] bool isMpdSocketConnected() const; @@ -52,8 +52,8 @@ private slots: void mpdSocketWritten(qint64 _bytes); private: - static inline QVariantHash defaultInfo(); - QVariantHash getPlayerMpdInfo(); + [[nodiscard]] static inline QVariantHash defaultInfo(); + [[nodiscard]] QVariantHash getPlayerMpdInfo(); [[nodiscard]] static QVariantHash getPlayerMprisInfo(const QString &_mpris); QTcpSocket m_mpdSocket; // configuration and values @@ -64,6 +64,6 @@ private: QMutex m_dbusMutex; QString m_player; int m_symbols; - QStringList m_metadata = QStringList({"album", "artist", "title"}); + QStringList m_metadata = {"album", "artist", "title"}; QVariantHash m_values; }; diff --git a/sources/extsysmonsources/processessource.h b/sources/extsysmonsources/processessource.h index 3fb05fa..3e9c174 100644 --- a/sources/extsysmonsources/processessource.h +++ b/sources/extsysmonsources/processessource.h @@ -29,7 +29,7 @@ class ProcessesSource : public AbstractExtSysMonSource public: explicit ProcessesSource(QObject *_parent); ~ProcessesSource() override = default; - QVariant data(const QString &_source) override; + [[nodiscard]] QVariant data(const QString &_source) override; void run(); [[nodiscard]] QHash sources() const override; diff --git a/sources/extsysmonsources/quotessource.h b/sources/extsysmonsources/quotessource.h index b337651..7b09969 100644 --- a/sources/extsysmonsources/quotessource.h +++ b/sources/extsysmonsources/quotessource.h @@ -32,7 +32,7 @@ class QuotesSource : public AbstractExtSysMonSource public: explicit QuotesSource(QObject *_parent); ~QuotesSource() override = default; - QVariant data(const QString &_source) override; + [[nodiscard]] QVariant data(const QString &_source) override; [[nodiscard]] QHash sources() const override; private: diff --git a/sources/extsysmonsources/requestsource.h b/sources/extsysmonsources/requestsource.h index 08f4977..2ac624d 100644 --- a/sources/extsysmonsources/requestsource.h +++ b/sources/extsysmonsources/requestsource.h @@ -32,7 +32,7 @@ class RequestSource : public AbstractExtSysMonSource public: explicit RequestSource(QObject *_parent); ~RequestSource() override = default; - QVariant data(const QString &_source) override; + [[nodiscard]] QVariant data(const QString &_source) override; [[nodiscard]] QHash sources() const override; private: diff --git a/sources/extsysmonsources/systeminfosource.h b/sources/extsysmonsources/systeminfosource.h index 2d58dce..f8cf0c5 100644 --- a/sources/extsysmonsources/systeminfosource.h +++ b/sources/extsysmonsources/systeminfosource.h @@ -29,14 +29,15 @@ class SystemInfoSource : public AbstractExtSysMonSource public: explicit SystemInfoSource(QObject *_parent); ~SystemInfoSource() override = default; - QVariant data(const QString &_source) override; + [[nodiscard]] QVariant data(const QString &_source) override; [[nodiscard]] QHash sources() const override; private: // configuration and values - static QVariant fromDBusVariant(const QVariant &_value); - static double getCurrentBrightness(); - static double getCurrentVolume(); - static QVariant sendDBusRequest(const QString &_destination, const QString &_path, const QString &_interface, - const QString &_method, const QVariantList &_args = {}); + [[nodiscard]] static QVariant fromDBusVariant(const QVariant &_value); + [[nodiscard]] static double getCurrentBrightness(); + [[nodiscard]] static double getCurrentVolume(); + [[nodiscard]] static QVariant sendDBusRequest(const QString &_destination, const QString &_path, + const QString &_interface, const QString &_method, + const QVariantList &_args = {}); }; diff --git a/sources/extsysmonsources/timesource.h b/sources/extsysmonsources/timesource.h index dbbd80a..3e8e939 100644 --- a/sources/extsysmonsources/timesource.h +++ b/sources/extsysmonsources/timesource.h @@ -29,6 +29,6 @@ class TimeSource : public AbstractExtSysMonSource public: explicit TimeSource(QObject *_parent); ~TimeSource() override = default; - QVariant data(const QString &_source) override; + [[nodiscard]] QVariant data(const QString &_source) override; [[nodiscard]] QHash sources() const override; }; diff --git a/sources/extsysmonsources/upgradesource.h b/sources/extsysmonsources/upgradesource.h index c80955d..ed9c624 100644 --- a/sources/extsysmonsources/upgradesource.h +++ b/sources/extsysmonsources/upgradesource.h @@ -32,7 +32,7 @@ class UpgradeSource : public AbstractExtSysMonSource public: explicit UpgradeSource(QObject *_parent); ~UpgradeSource() override = default; - QVariant data(const QString &_source) override; + [[nodiscard]] QVariant data(const QString &_source) override; [[nodiscard]] QHash sources() const override; private: diff --git a/sources/extsysmonsources/weathersource.h b/sources/extsysmonsources/weathersource.h index e69d4d8..73d903b 100644 --- a/sources/extsysmonsources/weathersource.h +++ b/sources/extsysmonsources/weathersource.h @@ -32,7 +32,7 @@ class WeatherSource : public AbstractExtSysMonSource public: explicit WeatherSource(QObject *_parent); ~WeatherSource() override = default; - QVariant data(const QString &_source) override; + [[nodiscard]] QVariant data(const QString &_source) override; [[nodiscard]] QHash sources() const override; private: