diff options
Diffstat (limited to 'xpcom/idl-parser/xpidl/header.py')
-rw-r--r-- | xpcom/idl-parser/xpidl/header.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xpcom/idl-parser/xpidl/header.py b/xpcom/idl-parser/xpidl/header.py index 8e02a7d11b..8e854c4da8 100644 --- a/xpcom/idl-parser/xpidl/header.py +++ b/xpcom/idl-parser/xpidl/header.py @@ -52,7 +52,7 @@ def attributeReturnType(a, macro): else: ret = macro if a.must_use: - ret = "MOZ_MUST_USE " + ret + ret = "[[nodiscard]] " + ret return ret @@ -90,7 +90,7 @@ def methodReturnType(m, macro): else: ret = macro if m.must_use: - ret = "MOZ_MUST_USE " + ret + ret = "[[nodiscard]] " + ret return ret |