Fix CID-5982-5985:
* assign arrays members explicitly instead in initialization list git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39921 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -199,19 +199,23 @@ BFormattingConventions::BFormattingConventions(const char* id)
|
|||||||
BFormattingConventions::BFormattingConventions(
|
BFormattingConventions::BFormattingConventions(
|
||||||
const BFormattingConventions& other)
|
const BFormattingConventions& other)
|
||||||
:
|
:
|
||||||
fCachedDateFormats(other.fCachedDateFormats),
|
|
||||||
fCachedTimeFormats(other.fCachedTimeFormats),
|
|
||||||
fCachedNumericFormat(other.fCachedNumericFormat),
|
fCachedNumericFormat(other.fCachedNumericFormat),
|
||||||
fCachedMonetaryFormat(other.fCachedMonetaryFormat),
|
fCachedMonetaryFormat(other.fCachedMonetaryFormat),
|
||||||
fCachedUse24HourClock(other.fCachedUse24HourClock),
|
fCachedUse24HourClock(other.fCachedUse24HourClock),
|
||||||
fExplicitDateFormats(other.fExplicitDateFormats),
|
|
||||||
fExplicitTimeFormats(other.fExplicitTimeFormats),
|
|
||||||
fExplicitNumericFormat(other.fExplicitNumericFormat),
|
fExplicitNumericFormat(other.fExplicitNumericFormat),
|
||||||
fExplicitMonetaryFormat(other.fExplicitMonetaryFormat),
|
fExplicitMonetaryFormat(other.fExplicitMonetaryFormat),
|
||||||
fExplicitUse24HourClock(other.fExplicitUse24HourClock),
|
fExplicitUse24HourClock(other.fExplicitUse24HourClock),
|
||||||
fUseStringsFromPreferredLanguage(other.fUseStringsFromPreferredLanguage),
|
fUseStringsFromPreferredLanguage(other.fUseStringsFromPreferredLanguage),
|
||||||
fICULocale(new ICU_VERSION::Locale(*other.fICULocale))
|
fICULocale(new ICU_VERSION::Locale(*other.fICULocale))
|
||||||
{
|
{
|
||||||
|
for (int s = 0; s < B_DATE_FORMAT_STYLE_COUNT; ++s)
|
||||||
|
fCachedDateFormats[s] = other.fCachedDateFormats[s];
|
||||||
|
for (int s = 0; s < B_TIME_FORMAT_STYLE_COUNT; ++s)
|
||||||
|
fCachedTimeFormats[s] = other.fCachedTimeFormats[s];
|
||||||
|
for (int s = 0; s < B_DATE_FORMAT_STYLE_COUNT; ++s)
|
||||||
|
fExplicitDateFormats[s] = other.fExplicitDateFormats[s];
|
||||||
|
for (int s = 0; s < B_TIME_FORMAT_STYLE_COUNT; ++s)
|
||||||
|
fExplicitTimeFormats[s] = other.fExplicitTimeFormats[s];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user