mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
d5eaaf6880
commit
c2f9e7bd7e
@ -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