mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
Bug 709977 - Don't use xpc_qsAString in IDB Key.h; r=bent
This commit is contained in:
parent
1f5b3d83bd
commit
f36fb98141
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user