diff options
Diffstat (limited to 'netwerk/protocol/file/nsFileChannel.h')
-rw-r--r-- | netwerk/protocol/file/nsFileChannel.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/netwerk/protocol/file/nsFileChannel.h b/netwerk/protocol/file/nsFileChannel.h index 4f28b9ed01..090b4bb403 100644 --- a/netwerk/protocol/file/nsFileChannel.h +++ b/netwerk/protocol/file/nsFileChannel.h @@ -28,13 +28,13 @@ protected: // method also returns a best guess at the content-type for the data stream. // NOTE: If the channel has a type hint set, contentType will be left // untouched. The caller should not use it in that case. - MOZ_MUST_USE nsresult MakeFileInputStream(nsIFile *file, - nsCOMPtr<nsIInputStream> &stream, - nsCString &contentType, bool async); + [[nodiscard]] nsresult MakeFileInputStream(nsIFile *file, + nsCOMPtr<nsIInputStream> &stream, + nsCString &contentType, bool async); - virtual MOZ_MUST_USE nsresult OpenContentStream(bool async, - nsIInputStream **result, - nsIChannel** channel) override; + [[nodiscard]] virtual nsresult OpenContentStream(bool async, + nsIInputStream **result, + nsIChannel** channel) override; private: nsCOMPtr<nsIInputStream> mUploadStream; |