From e3c39838271ee7bb009fc83ce0bff1feb389c2e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Fri, 19 Mar 2021 11:11:15 +0100 Subject: [PATCH] Locale: fix binary compatibility for BNumberFormat Issue: https://github.com/HaikuArchives/Album/issues/15 Change-Id: I1f8d5055f929957adb0cca20a8f6b13bcccabfab Reviewed-on: https://review.haiku-os.org/c/haiku/+/3807 Reviewed-by: Adrien Destugues --- headers/os/locale/NumberFormat.h | 1 + src/kits/locale/NumberFormat.cpp | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/headers/os/locale/NumberFormat.h b/headers/os/locale/NumberFormat.h index 76b483dcf9..3a123fa68f 100644 --- a/headers/os/locale/NumberFormat.h +++ b/headers/os/locale/NumberFormat.h @@ -44,6 +44,7 @@ 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 90a1be4a6d..635e37f54a 100644 --- a/src/kits/locale/NumberFormat.cpp +++ b/src/kits/locale/NumberFormat.cpp @@ -193,6 +193,13 @@ BNumberFormat::BNumberFormat(const BLocale* locale) } +BNumberFormat::BNumberFormat() + : BFormat() +{ + fPrivateData = new BNumberFormatImpl(); +} + + BNumberFormat::BNumberFormat(const BNumberFormat &other) : BFormat(other) {