nodiscard attribute for formatter methods

This commit is contained in:
2024-04-30 17:08:52 +03:00
parent 238e70e711
commit 985737564e
24 changed files with 60 additions and 35 deletions

View File

@ -45,13 +45,13 @@ public:
AWPluginMatcher(AWPluginMatcher &) = delete;
void operator=(const AWPluginMatcher &) = delete;
static Matcher *instance()
[[nodiscard]] static Matcher *instance()
{
static auto instance = std::make_unique<Matcher>();
return instance.get();
};
static QString device(const QString &_source) { return _source.split('/')[1]; };
[[nodiscard]] static QString device(const QString &_source) { return _source.split('/')[1]; };
protected:
AWPluginMatcher() = default;