From 6b7022632bc8fe3d3030632e0d02f219e615b756 Mon Sep 17 00:00:00 2001 From: Shane Carr Date: Wed, 30 May 2018 21:27:07 +0000 Subject: [PATCH] ICU-13667 Making new DecimalFormat constructor private. X-SVN-Rev: 41489 --- icu4c/source/i18n/unicode/decimfmt.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/icu4c/source/i18n/unicode/decimfmt.h b/icu4c/source/i18n/unicode/decimfmt.h index cb025bb285b..3747f510f79 100644 --- a/icu4c/source/i18n/unicode/decimfmt.h +++ b/icu4c/source/i18n/unicode/decimfmt.h @@ -756,13 +756,6 @@ class U_I18N_API DecimalFormat : public NumberFormat { DecimalFormat(const UnicodeString& pattern, DecimalFormatSymbols* symbolsToAdopt, UNumberFormatStyle style, UErrorCode& status); - /** - * This API is for ICU use only. - * Default internal constructor for DecimalFormat. - * @internal - */ - DecimalFormat(const DecimalFormatSymbols* symbolsToAdopt, UErrorCode& status); - #if UCONFIG_HAVE_PARSEALLINPUT /** @@ -774,6 +767,15 @@ class U_I18N_API DecimalFormat : public NumberFormat { #endif /* U_HIDE_INTERNAL_API */ + private: + + /** + * Internal constructor for DecimalFormat; sets up internal fields. All public constructors should + * call this constructor. + */ + DecimalFormat(const DecimalFormatSymbols* symbolsToAdopt, UErrorCode& status); + + public: /** * Set an integer attribute on this DecimalFormat.