mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-28 11:28:38 +00:00
Removed OJI ifdef from LO_GetBuiltInAttribute() as the LO_BuiltinStruct is the same for both cases.
This commit is contained in:
parent
cea397e3a6
commit
32653b6fde
@ -607,7 +607,6 @@ LO_GetBuiltInAttribute (LO_BuiltinStruct *pBuiltin_struct, char* att)
|
||||
int n = 0;
|
||||
if (!pBuiltin_struct || !att)
|
||||
return NULL;
|
||||
#ifdef OJI
|
||||
while (n < pBuiltin_struct->attributes.n) {
|
||||
char* attName = *(pBuiltin_struct->attributes.names + n);
|
||||
char* attValue = *(pBuiltin_struct->attributes.values + n);
|
||||
@ -616,16 +615,6 @@ LO_GetBuiltInAttribute (LO_BuiltinStruct *pBuiltin_struct, char* att)
|
||||
}
|
||||
n++;
|
||||
}
|
||||
#else
|
||||
while (n < pBuiltin_struct->attribute_cnt) {
|
||||
char* attName = *(pBuiltin_struct->attribute_list + n);
|
||||
char* attValue = *(pBuiltin_struct->value_list + n);
|
||||
if (attName && (XP_FILENAMECMP(attName, att) == 0)) {
|
||||
return attValue;
|
||||
}
|
||||
n++;
|
||||
}
|
||||
#endif
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user