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) {