Re: nsString
FrAnk Alvin <[email protected]> Sun, 4 Dec 2011 18:23:20 -0800 (PST)
| Newsgroups | gmane.comp.mozilla.devel.embedding |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <99b2a58f-8d4f-46e2-bfce-2b749a25833d@q11g2000vbq.googlegroups.com> |
On 11月28日, 下午6时36分, philippe <[email protected]> wrote: > Hello. > > I built a browser with gecko 1.8 . It worked fine. > Now I try to use gecko 1.9.2.23. I get some conversions problems > > For example: > > ______________ > > nsString attributeName > > char* attrName=ToNewCString(attributeName); causes an error : cannot > convert parameter 1 from 'nsString_external' to 'const nsACString &' > ___________________ > > Is there a doc about such conversions in 1.9.2. > > Could you help me ? > > Thank's > > philippe --------------------------------------------- nsString attributeName char* attrName = NS_ConvertUTF16toUTF8(attributeName).get(); _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding