ICU-20452 Removing extra semicolons from public header files.

(Produced warnings in V8 build system.)
This commit is contained in:
Shane F. Carr 2019-02-22 13:47:06 -08:00
parent 213cd3680c
commit 92ed50bc2c
5 changed files with 12 additions and 12 deletions

View file

@ -102,9 +102,9 @@ class U_I18N_API FormattedDateInterval : public UMemory, public FormattedValue {
FormattedDateIntervalData *fData;
UErrorCode fErrorCode;
explicit FormattedDateInterval(FormattedDateIntervalData *results)
: fData(results), fErrorCode(U_ZERO_ERROR) {};
: fData(results), fErrorCode(U_ZERO_ERROR) {}
explicit FormattedDateInterval(UErrorCode errorCode)
: fData(nullptr), fErrorCode(errorCode) {};
: fData(nullptr), fErrorCode(errorCode) {}
friend class DateIntervalFormat;
};
#endif /* U_HIDE_DRAFT_API */

View file

@ -127,9 +127,9 @@ class U_I18N_API FormattedList : public UMemory, public FormattedValue {
FormattedListData *fData;
UErrorCode fErrorCode;
explicit FormattedList(FormattedListData *results)
: fData(results), fErrorCode(U_ZERO_ERROR) {};
: fData(results), fErrorCode(U_ZERO_ERROR) {}
explicit FormattedList(UErrorCode errorCode)
: fData(nullptr), fErrorCode(errorCode) {};
: fData(nullptr), fErrorCode(errorCode) {}
friend class ListFormatter;
};
#endif /* U_HIDE_DRAFT_API */

View file

@ -1264,7 +1264,7 @@ class U_I18N_API Grouper : public UMemory {
*/
UNumberGroupingStrategy fStrategy;
Grouper() : fGrouping1(-3) {};
Grouper() : fGrouping1(-3) {}
bool isBogus() const {
return fGrouping1 == -3;
@ -2113,7 +2113,7 @@ class U_I18N_API NumberFormatterSettings {
}
fMacros.copyErrorTo(outErrorCode);
return U_FAILURE(outErrorCode);
};
}
// NOTE: Uses default copy and move constructors.
@ -2527,10 +2527,10 @@ class U_I18N_API FormattedNumber : public UMemory, public FormattedValue {
* @internal
*/
explicit FormattedNumber(impl::UFormattedNumberData *results)
: fData(results), fErrorCode(U_ZERO_ERROR) {};
: fData(results), fErrorCode(U_ZERO_ERROR) {}
explicit FormattedNumber(UErrorCode errorCode)
: fData(nullptr), fErrorCode(errorCode) {};
: fData(nullptr), fErrorCode(errorCode) {}
// To give LocalizedNumberFormatter format methods access to this class's constructor:
friend class LocalizedNumberFormatter;

View file

@ -845,10 +845,10 @@ class U_I18N_API FormattedNumberRange : public UMemory, public FormattedValue {
* @internal
*/
explicit FormattedNumberRange(impl::UFormattedNumberRangeData *results)
: fData(results), fErrorCode(U_ZERO_ERROR) {};
: fData(results), fErrorCode(U_ZERO_ERROR) {}
explicit FormattedNumberRange(UErrorCode errorCode)
: fData(nullptr), fErrorCode(errorCode) {};
: fData(nullptr), fErrorCode(errorCode) {}
void getAllFieldPositionsImpl(FieldPositionIteratorHandler& fpih, UErrorCode& status) const;

View file

@ -306,9 +306,9 @@ class U_I18N_API FormattedRelativeDateTime : public UMemory, public FormattedVal
FormattedRelativeDateTimeData *fData;
UErrorCode fErrorCode;
explicit FormattedRelativeDateTime(FormattedRelativeDateTimeData *results)
: fData(results), fErrorCode(U_ZERO_ERROR) {};
: fData(results), fErrorCode(U_ZERO_ERROR) {}
explicit FormattedRelativeDateTime(UErrorCode errorCode)
: fData(nullptr), fErrorCode(errorCode) {};
: fData(nullptr), fErrorCode(errorCode) {}
friend class RelativeDateTimeFormatter;
};