mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 905542: IsNull/SetNull functions for nullable unions should have bodyInHeader=True to prevent compiler warnings r=Ms2ger
This commit is contained in:
parent
4aae58c4bb
commit
e7c81e9306
@ -6097,9 +6097,11 @@ class CGUnionStruct(CGThing):
|
||||
if self.type.hasNullableType:
|
||||
enumValues.append("eNull")
|
||||
methods.append(ClassMethod("IsNull", "bool", [], const=True, inline=True,
|
||||
body="return mType == eNull;"))
|
||||
body="return mType == eNull;",
|
||||
bodyInHeader=True))
|
||||
methods.append(ClassMethod("SetNull", "void", [], inline=True,
|
||||
body="mType = eNull;"))
|
||||
body="mType = eNull;",
|
||||
bodyInHeader=True))
|
||||
destructorCases.append(CGCase("eNull", None))
|
||||
toJSValCases.append(CGCase("eNull", CGGeneric("rval.setNull();\n"
|
||||
"return true;")))
|
||||
|
Loading…
Reference in New Issue
Block a user