From d5261e082c3b329c9ccae55db49831fb6c32be88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Fri, 22 Oct 2021 08:41:13 +0000 Subject: [PATCH] Bug 1736834 - Part 5: Use the existing ICUResult typedef for Locale::toString(). r=platform-i18n-reviewers,dminor Differential Revision: https://phabricator.services.mozilla.com/D129041 --- intl/components/src/Locale.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intl/components/src/Locale.h b/intl/components/src/Locale.h index d932993c4b28..7cad34dce15f 100644 --- a/intl/components/src/Locale.h +++ b/intl/components/src/Locale.h @@ -368,7 +368,7 @@ class MOZ_STACK_CLASS Locale final { * Fill the buffer with a string representation of the locale. */ template - Result toString(B& buffer) const { + ICUResult toString(B& buffer) const { static_assert(std::is_same_v); size_t capacity = toStringCapacity();