summaryrefslogtreecommitdiff
path: root/xpcom/io/nsIPipe.idl
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-11-05 10:41:52 +0100
committerMoonchild <moonchild@palemoon.org>2023-11-08 13:50:12 +0100
commit292ece5fde96a67a44830cb2c05463a06de0b373 (patch)
treebb897ea5b84dec63e322d7a342f7bf5eaf323c9c /xpcom/io/nsIPipe.idl
parentccc8c3b988375858400e8cbb5cd3ed665ece7aa4 (diff)
downloaduxp-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.idl4
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,