diff options
author | Moonchild <moonchild@palemoon.org> | 2023-11-04 20:06:50 +0100 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-11-08 13:48:12 +0100 |
commit | 706d07b3d560955745a7dd4addb0ea52ac18d94b (patch) | |
tree | 581db1c66c37f92bf7759aae1ef45acc7ad38201 /js/src/builtin/intl/Locale.h | |
parent | eb7be8c637b7b382161d009b302ae9713470c553 (diff) | |
download | uxp-706d07b3d560955745a7dd4addb0ea52ac18d94b.tar.gz |
Issue #2342: Use [[nodiscard]] in /js
Diffstat (limited to 'js/src/builtin/intl/Locale.h')
-rw-r--r-- | js/src/builtin/intl/Locale.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/src/builtin/intl/Locale.h b/js/src/builtin/intl/Locale.h index 881906616b..b57af31296 100644 --- a/js/src/builtin/intl/Locale.h +++ b/js/src/builtin/intl/Locale.h @@ -48,14 +48,14 @@ extern JSObject* CreateLocalePrototype(JSContext* cx, JS::Handle<JSObject*> Intl, JS::Handle<GlobalObject*> global); -extern MOZ_MUST_USE bool intl_ValidateAndCanonicalizeLanguageTag(JSContext* cx, - unsigned argc, - Value* vp); +[[nodiscard]] extern bool intl_ValidateAndCanonicalizeLanguageTag(JSContext* cx, + unsigned argc, + Value* vp); -extern MOZ_MUST_USE bool intl_TryValidateAndCanonicalizeLanguageTag( +[[nodiscard]] extern bool intl_TryValidateAndCanonicalizeLanguageTag( JSContext* cx, unsigned argc, Value* vp); -extern MOZ_MUST_USE bool intl_ValidateAndCanonicalizeUnicodeExtensionType( +[[nodiscard]] extern bool intl_ValidateAndCanonicalizeUnicodeExtensionType( JSContext* cx, unsigned argc, Value* vp); } // namespace js |