diff options
author | Moonchild <moonchild@palemoon.org> | 2023-11-05 10:41:52 +0100 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-11-08 13:50:12 +0100 |
commit | 292ece5fde96a67a44830cb2c05463a06de0b373 (patch) | |
tree | bb897ea5b84dec63e322d7a342f7bf5eaf323c9c /xpcom/io/nsIPipe.idl | |
parent | ccc8c3b988375858400e8cbb5cd3ed665ece7aa4 (diff) | |
download | uxp-292ece5fde96a67a44830cb2c05463a06de0b373.tar.gz |
Issue #2342: Use [[nodiscard]] in /xpcom and xpidl parser
Diffstat (limited to 'xpcom/io/nsIPipe.idl')
-rw-r--r-- | xpcom/io/nsIPipe.idl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xpcom/io/nsIPipe.idl b/xpcom/io/nsIPipe.idl index 596be92e9f..3442f1734c 100644 --- a/xpcom/io/nsIPipe.idl +++ b/xpcom/io/nsIPipe.idl @@ -127,7 +127,7 @@ class nsIOutputStream; * this mode can be useful in some cases, but should always be used with * caution. the default value for this parameter is a finite value. */ -extern MOZ_MUST_USE nsresult +extern [[nodiscard]] nsresult NS_NewPipe2(nsIAsyncInputStream **pipeIn, nsIAsyncOutputStream **pipeOut, bool nonBlockingInput = false, @@ -160,7 +160,7 @@ NS_NewPipe2(nsIAsyncInputStream **pipeIn, * @param nonBlockingOutput * true specifies non-blocking output stream behavior */ -extern MOZ_MUST_USE nsresult +extern [[nodiscard]] nsresult NS_NewPipe(nsIInputStream **pipeIn, nsIOutputStream **pipeOut, uint32_t segmentSize = 0, |