mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
Follow-up fix to fix for bug 314931, make sConstructorMap const.
This commit is contained in:
parent
96eccc0a24
commit
6983632d9f
@ -1100,7 +1100,7 @@ struct nsContractIDMapData
|
||||
#define NS_DEFINE_CONSTRUCTOR_DATA(_class, _contract_id) \
|
||||
{ eDOMClassInfo_##_class##_id, _contract_id },
|
||||
|
||||
static nsContractIDMapData sConstructorMap[] =
|
||||
static const nsContractIDMapData kConstructorMap[] =
|
||||
{
|
||||
NS_DEFINE_CONSTRUCTOR_DATA(XPathEvaluator,
|
||||
NS_XPATH_EVALUATOR_CONTRACTID)
|
||||
@ -4399,9 +4399,9 @@ static const char*
|
||||
FindConstructorContractID(PRInt32 aDOMClassInfoID)
|
||||
{
|
||||
PRUint32 i;
|
||||
for (i = 0; i < NS_ARRAY_LENGTH(sConstructorMap); ++i) {
|
||||
if (sConstructorMap[i].mDOMClassInfoID == aDOMClassInfoID) {
|
||||
return sConstructorMap[i].mContractID;
|
||||
for (i = 0; i < NS_ARRAY_LENGTH(kConstructorMap); ++i) {
|
||||
if (kConstructorMap[i].mDOMClassInfoID == aDOMClassInfoID) {
|
||||
return kConstructorMap[i].mContractID;
|
||||
}
|
||||
}
|
||||
return nsnull;
|
||||
|
Loading…
Reference in New Issue
Block a user