Greetings,

In bug 1486690 I renamed both variants of NS_strdup() as NS_xstrdup(). I
also renamed nsMemory::Clone() as moz_xmemdup() and moved it into mozalloc.

Rationale:

- These functions are all infallible, and the 'x' prefix makes this clear,
as per our allocator naming convention (e.g. moz_xmalloc).

- The nsMemory class was a weird place for the Clone() function; allocator
stuff doesn't belong in XPCOM any more. And the name moz_xmemdup() is
similar to the existing moz_xstrdup().

Nick
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to