[clang-tidy] add [[nodiscard]]

Found with modernize-use-nodiscard

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-03-17 21:46:58 -07:00 committed by Max Kellermann
parent 403612c666
commit cade4e71c4

View File

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