nodiscard attribute for formatter methods

This commit is contained in:
arcanis committed 2024-04-30 17:08:52 +03:00
1 parent 238e70e711
commit 985737564e
24 files changed
+60 -35

No files matched your search

@@ -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;