Audio: Fix code smells and issues found by static analysis

This fixes all current code smells, bugs and issues reported by
SonarCloud static analysis. Other issues are almost exclusively false
positives. This makes much code clearer, and some minor benefits in
performance or bug evasion may be gained.
This commit is contained in:
kleines Filmröllchen 2021-11-15 22:27:28 +01:00 committed by Linus Groh
commit 8af97d0ce7
Notes: sideshowbarker 2024-07-18 01:06:05 +09:00
12 changed files with 99 additions and 77 deletions

View file

@ -78,8 +78,8 @@ public:
RefPtr<Core::File> file() const { return m_plugin ? m_plugin->file() : nullptr; }
private:
Loader(StringView path);
Loader(const ByteBuffer& buffer);
explicit Loader(StringView path);
explicit Loader(const ByteBuffer& buffer);
mutable OwnPtr<LoaderPlugin> m_plugin;
};