summaryrefslogtreecommitdiff
path: root/netwerk/ipc
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-11-04 23:42:53 +0100
committerMoonchild <moonchild@palemoon.org>2023-11-08 13:49:30 +0100
commitd53992cc127fb85a63a23c01cd92347901bf2371 (patch)
tree9394328528e5bf3f8b04afcc8fdfd6580c51760d /netwerk/ipc
parent6f7a751520896b95c6eef986f841def329cdb20e (diff)
downloaduxp-d53992cc127fb85a63a23c01cd92347901bf2371.tar.gz
Issue #2342: Use [[nodiscard]] in /netwerk
Diffstat (limited to 'netwerk/ipc')
-rw-r--r--netwerk/ipc/NeckoParent.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/netwerk/ipc/NeckoParent.h b/netwerk/ipc/NeckoParent.h
index fe1d77e482..068e96d499 100644
--- a/netwerk/ipc/NeckoParent.h
+++ b/netwerk/ipc/NeckoParent.h
@@ -32,8 +32,7 @@ public:
NeckoParent();
virtual ~NeckoParent();
- MOZ_MUST_USE
- static const char *
+ [[nodiscard]] static const char*
GetValidatedOriginAttributes(const SerializedLoadContext& aSerialized,
PContentParent* aBrowser,
nsIPrincipal* aRequestingPrincipal,
@@ -46,8 +45,7 @@ public:
*
* Returns null if successful, or an error string if failed.
*/
- MOZ_MUST_USE
- static const char*
+ [[nodiscard]] static const char*
CreateChannelLoadContext(const PBrowserOrId& aBrowser,
PContentParent* aContent,
const SerializedLoadContext& aSerialized,