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(); }