Bug 709977 - Don't use xpc_qsAString in IDB Key.h; r=bent

This commit is contained in:
Ms2ger 2011-12-18 11:13:40 +01:00
parent 1f5b3d83bd
commit f36fb98141

View File

@ -43,6 +43,7 @@
#include "mozilla/dom/indexedDB/IndexedDatabase.h"
#include "mozIStorageStatement.h"
#include "nsJSUtils.h"
#include "xpcprivate.h"
#include "XPCQuickStubs.h"
@ -168,9 +169,11 @@ public:
jsval aVal)
{
if (JSVAL_IS_STRING(aVal)) {
jsval tempRoot = JSVAL_VOID;
SetFromString(xpc_qsAString(aCx, aVal, &tempRoot));
return NS_OK;
nsDependentJSString str;
if (!str.init(aCx, aVal)) {
return NS_ERROR_OUT_OF_MEMORY;
}
return SetFromString(str);
}
if (JSVAL_IS_INT(aVal)) {