On Fri, Sep 03, 2004 at 03:27:34PM +0100, Nikhil Kadu wrote:
> NS_IMETHODIMP Connection::Query(const nsAString & query, PRInt32 *ID) {
>            StoreQuery((unsigned char 
> *)NS_ConvertUTF16toUTF8(PromiseFlatString(query).get()).get())

Use:
  StoreQuery(NS_STATIC_CAST(const unsigned char *, 
NS_ConvertUTF16toUTF8(query).get()));

And change StoreQuery to take a const unsigned char*. Why does it not
take a const char*, btw?

-- 
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to