Benjamin Smedberg wrote:

On 1/10/2014 12:19 AM, Daniel Holbert wrote:

Just to be clear -- does this mean we should strictly prefer str.Assign(NS_LITERAL_STRING("foo")) over str.AssignLiteral("foo") now?

For wide strings, I'm pretty sure the pattern we want is AssignLiteral(MOZ_UTF16("foo")).

Although you can construct a string from an NS_LITERAL_STRING, which you can't do from a string literal.

--
Warning: May contain traces of nuts.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to