зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1255343 - Stop returning nsresult from NS_RegisterStaticAtoms; r=ehsan
It only ever returns NS_OK, and none of the callers check the result.
This commit is contained in:
Родитель
4d796781c7
Коммит
3a6fa6704c
|
@ -571,7 +571,7 @@ class CheckStaticAtomSizes
|
|||
}
|
||||
};
|
||||
|
||||
nsresult
|
||||
void
|
||||
RegisterStaticAtoms(const nsStaticAtom* aAtoms, uint32_t aAtomCount)
|
||||
{
|
||||
if (!gStaticAtomTable && !gStaticAtomTableSealed) {
|
||||
|
@ -609,7 +609,6 @@ RegisterStaticAtoms(const nsStaticAtom* aAtoms, uint32_t aAtomCount)
|
|||
entry->mAtom = atom;
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
already_AddRefed<nsIAtom>
|
||||
|
|
|
@ -43,11 +43,11 @@ struct nsFakeStringBuffer
|
|||
|
||||
// Register an array of static atoms with the atom table
|
||||
template<uint32_t N>
|
||||
nsresult
|
||||
void
|
||||
NS_RegisterStaticAtoms(const nsStaticAtom (&aAtoms)[N])
|
||||
{
|
||||
extern nsresult RegisterStaticAtoms(const nsStaticAtom*, uint32_t aAtomCount);
|
||||
return RegisterStaticAtoms(aAtoms, N);
|
||||
extern void RegisterStaticAtoms(const nsStaticAtom*, uint32_t aAtomCount);
|
||||
RegisterStaticAtoms(aAtoms, N);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче