summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-03-17 21:46:58 -0700
committerMax Kellermann <max@musicpd.org>2020-03-19 13:38:40 +0100
commitcade4e71c461e6c54195434a3503e9ebac3da40d (patch)
tree408a117e50741c77da380cd8dc9dfdf20dd40bc6 /src
parent403612c6662557604049479cc246c6fc035f6d0c (diff)
[clang-tidy] add [[nodiscard]]
Found with modernize-use-nodiscard Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/encoder/plugins/ShineEncoderPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoder/plugins/ShineEncoderPlugin.cxx b/src/encoder/plugins/ShineEncoderPlugin.cxx
index 6eb7b0a79..4479d5181 100644
--- a/src/encoder/plugins/ShineEncoderPlugin.cxx
+++ b/src/encoder/plugins/ShineEncoderPlugin.cxx
@@ -91,7 +91,7 @@ public:
/* virtual methods from class PreparedEncoder */
Encoder *Open(AudioFormat &audio_format) override;
- const char *GetMimeType() const noexcept override {
+ [[nodiscard]] const char *GetMimeType() const noexcept override {
return "audio/mpeg";
}
};