From 267c6a9b0dd9ec31b2bdd5a7f7cb58215d30a3b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Fri, 19 Mar 2021 23:03:50 +0100 Subject: [PATCH] Locale: correct fix binary compatibility for BNumberFormat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix HaikuDepot build after hrev55006 Change-Id: I3c275e1b0f23f936db448ad82639458535617d6a Reviewed-on: https://review.haiku-os.org/c/haiku/+/3809 Reviewed-by: Jérôme Duval --- headers/os/locale/NumberFormat.h | 4 ++-- src/kits/locale/NumberFormat.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/headers/os/locale/NumberFormat.h b/headers/os/locale/NumberFormat.h index 3a123fa68f..dd8c5bcfc9 100644 --- a/headers/os/locale/NumberFormat.h +++ b/headers/os/locale/NumberFormat.h @@ -19,7 +19,8 @@ class BNumberFormatImpl; class BNumberFormat : public BFormat { public: - BNumberFormat(const BLocale* locale = NULL); + BNumberFormat(); + BNumberFormat(const BLocale* locale); ~BNumberFormat(); ssize_t Format(char* string, size_t maxSize, @@ -44,7 +45,6 @@ public: BString GetSeparator(BNumberElement element); private: - BNumberFormat(); BNumberFormat(const BNumberFormat &other); private: diff --git a/src/kits/locale/NumberFormat.cpp b/src/kits/locale/NumberFormat.cpp index 635e37f54a..5b43059bc8 100644 --- a/src/kits/locale/NumberFormat.cpp +++ b/src/kits/locale/NumberFormat.cpp @@ -186,15 +186,15 @@ BNumberFormatImpl::ApplyFormatter(NumberFormat* formatter, BString& string, } -BNumberFormat::BNumberFormat(const BLocale* locale) - : BFormat(locale) +BNumberFormat::BNumberFormat() + : BFormat() { fPrivateData = new BNumberFormatImpl(); } -BNumberFormat::BNumberFormat() - : BFormat() +BNumberFormat::BNumberFormat(const BLocale* locale) + : BFormat(locale) { fPrivateData = new BNumberFormatImpl(); }