diff options
Diffstat (limited to 'xpcom/base/nsIGZFileWriter.idl')
-rw-r--r-- | xpcom/base/nsIGZFileWriter.idl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xpcom/base/nsIGZFileWriter.idl b/xpcom/base/nsIGZFileWriter.idl index ad7a32d85d..5179fafec1 100644 --- a/xpcom/base/nsIGZFileWriter.idl +++ b/xpcom/base/nsIGZFileWriter.idl @@ -55,7 +55,7 @@ interface nsIGZFileWriter : nsISupports /** * Write the given char* to the file (not including the null-terminator). */ - MOZ_MUST_USE nsresult Write(const char* str) + [[nodiscard]] nsresult Write(const char* str) { return Write(str, strlen(str)); } @@ -63,7 +63,7 @@ interface nsIGZFileWriter : nsISupports /** * Write |length| bytes of |str| to the file. */ - MOZ_MUST_USE nsresult Write(const char* str, uint32_t len) + [[nodiscard]] nsresult Write(const char* str, uint32_t len) { return Write(nsDependentCString(str, len)); } |