summaryrefslogtreecommitdiff
path: root/netwerk/sctp/datachannel/DataChannel.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-11-11 01:55:07 +0000
committerMoonchild <moonchild@palemoon.org>2023-11-11 01:55:07 +0000
commitc789882a294d29b3e5450a972ad67c4839c75e23 (patch)
tree4234880ff76df9da2caaf06983da144e42032a09 /netwerk/sctp/datachannel/DataChannel.h
parent93eee35e84c29e1e64cb1531a0830b8ab2a7c5fa (diff)
parentf9ad6258221d89d8ee8e543c2ff8b21a42dbd285 (diff)
downloaduxp-c789882a294d29b3e5450a972ad67c4839c75e23.tar.gz
Merge pull request 'Replace MOZ_MUST_USE with [[nodiscard]]' (#2375) from 2342-nodiscard-work into master
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2375
Diffstat (limited to 'netwerk/sctp/datachannel/DataChannel.h')
-rw-r--r--netwerk/sctp/datachannel/DataChannel.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/netwerk/sctp/datachannel/DataChannel.h b/netwerk/sctp/datachannel/DataChannel.h
index 33458e6c2b..02dca930c5 100644
--- a/netwerk/sctp/datachannel/DataChannel.h
+++ b/netwerk/sctp/datachannel/DataChannel.h
@@ -140,15 +140,14 @@ public:
PARTIAL_RELIABLE_TIMED = 2
} Type;
- MOZ_MUST_USE
- already_AddRefed<DataChannel> Open(const nsACString& label,
- const nsACString& protocol,
- Type type, bool inOrder,
- uint32_t prValue,
- DataChannelListener *aListener,
- nsISupports *aContext,
- bool aExternalNegotiated,
- uint16_t aStream);
+ [[nodiscard]] already_AddRefed<DataChannel> Open(const nsACString& label,
+ const nsACString& protocol,
+ Type type, bool inOrder,
+ uint32_t prValue,
+ DataChannelListener *aListener,
+ nsISupports *aContext,
+ bool aExternalNegotiated,
+ uint16_t aStream);
void Close(DataChannel *aChannel);
// CloseInt() must be called with mLock held