mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 903427 - make ConstantSpecs in OSFileConstants.cpp const and constexpr-foldable; r=khuey
This commit is contained in:
parent
6da0f7cba7
commit
71abcfec30
@ -242,7 +242,7 @@ void CleanupOSFileConstants()
|
||||
/**
|
||||
* End marker for ConstantSpec
|
||||
*/
|
||||
#define PROP_END { NULL, JSVAL_VOID }
|
||||
#define PROP_END { NULL, JS::UndefinedValue() }
|
||||
|
||||
|
||||
// Define missing constants for Android
|
||||
@ -269,7 +269,7 @@ void CleanupOSFileConstants()
|
||||
* keep properties organized by alphabetical order
|
||||
* and #ifdef-away properties that are not portable.
|
||||
*/
|
||||
static dom::ConstantSpec gLibcProperties[] =
|
||||
static const dom::ConstantSpec gLibcProperties[] =
|
||||
{
|
||||
// Arguments for open
|
||||
INT_CONSTANT(O_APPEND),
|
||||
@ -522,7 +522,7 @@ static dom::ConstantSpec gLibcProperties[] =
|
||||
* keep properties organized by alphabetical order
|
||||
* and #ifdef-away properties that are not portable.
|
||||
*/
|
||||
static dom::ConstantSpec gWinProperties[] =
|
||||
static const dom::ConstantSpec gWinProperties[] =
|
||||
{
|
||||
// FormatMessage flags
|
||||
INT_CONSTANT(FORMAT_MESSAGE_FROM_SYSTEM),
|
||||
|
Loading…
Reference in New Issue
Block a user