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:
Oliver Tappe 2010-12-22 22:39:17 +00:00
parent abd80e8a97
commit c905e535a2

View File

@ -199,19 +199,23 @@ BFormattingConventions::BFormattingConventions(const char* id)
BFormattingConventions::BFormattingConventions(
const BFormattingConventions& other)
:
fCachedDateFormats(other.fCachedDateFormats),
fCachedTimeFormats(other.fCachedTimeFormats),
fCachedNumericFormat(other.fCachedNumericFormat),
fCachedMonetaryFormat(other.fCachedMonetaryFormat),
fCachedUse24HourClock(other.fCachedUse24HourClock),
fExplicitDateFormats(other.fExplicitDateFormats),
fExplicitTimeFormats(other.fExplicitTimeFormats),
fExplicitNumericFormat(other.fExplicitNumericFormat),
fExplicitMonetaryFormat(other.fExplicitMonetaryFormat),
fExplicitUse24HourClock(other.fExplicitUse24HourClock),
fUseStringsFromPreferredLanguage(other.fUseStringsFromPreferredLanguage),
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];
}