Bug 714597 - GfxInfoCollector.h used in Thebes API should not depend on internal string API. r=roc

This commit is contained in:
David Marteau 2012-01-03 13:19:58 +01:00
parent c34b89288d
commit d955dd3600

View File

@ -66,7 +66,7 @@ class InfoObject
if (!mOk)
return;
const nsPromiseFlatString &flat = PromiseFlatString(value);
const nsString &flat = PromiseFlatString(value);
JSString *string = JS_NewUCStringCopyN(mCx, static_cast<const jschar*>(flat.get()), flat.Length());
if (!string)
mOk = JS_FALSE;