mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Fix a C-style cast to a const_cast<>. Followup to bug 837957, r=sparky
--HG-- extra : rebase_source : f4c806060a89a424544ce5704b19ed36ef968e88
This commit is contained in:
parent
dc867dcac6
commit
25c9b94f0d
@ -1856,7 +1856,7 @@ NewUDateFormat(JSContext *cx, HandleObject dateTimeFormat)
|
||||
|
||||
// ECMAScript requires the Gregorian calendar to be used from the beginning
|
||||
// of ECMAScript time.
|
||||
UCalendar *cal = (UCalendar *) udat_getCalendar(df);
|
||||
UCalendar *cal = const_cast<UCalendar*>(udat_getCalendar(df));
|
||||
ucal_setGregorianChange(cal, StartOfTime, &status);
|
||||
|
||||
// An error here means the calendar is not Gregorian, so we don't care.
|
||||
|
Loading…
Reference in New Issue
Block a user