Bug 903427 - make ConstantSpecs in OSFileConstants.cpp const and constexpr-foldable; r=khuey

This commit is contained in:
Nathan Froyd 2013-08-09 09:46:07 -04:00
parent 6da0f7cba7
commit 71abcfec30

View File

@ -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),