From d53992cc127fb85a63a23c01cd92347901bf2371 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Sat, 4 Nov 2023 23:42:53 +0100 Subject: Issue #2342: Use [[nodiscard]] in /netwerk --- netwerk/sctp/datachannel/DataChannel.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'netwerk/sctp/datachannel/DataChannel.h') 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 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 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 -- cgit v1.2.3