summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2018-03-22 13:00:33 -0400
committerRay Strode <rstrode@redhat.com>2018-04-03 14:16:31 -0400
commitd395bab5f19b340dbd5b4c0a2369c1c9b7d85b88 (patch)
tree4af2b8aaf43653d17baed049f006bf1d857e44c2 /src
parentaacc1526fdaab2044bae13e741187850b794d4cf (diff)
downloadpolkit-d395bab5f19b340dbd5b4c0a2369c1c9b7d85b88.tar.gz
jsauthority: s/JSVAL_NULL/JS::NullValue()/
This commit does a global search and replace for JSVAL_NULL to JS::NullValue() Signed-off-by: Ray Strode <rstrode@redhat.com> https://bugs.freedesktop.org/show_bug.cgi?id=105865
Diffstat (limited to 'src')
-rw-r--r--src/polkitbackend/polkitbackendjsauthority.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp
index 73251a8..eb22597 100644
--- a/src/polkitbackend/polkitbackendjsauthority.cpp
+++ b/src/polkitbackend/polkitbackendjsauthority.cpp
@@ -342,8 +342,8 @@ load_scripts (PolkitBackendJsAuthority *authority)
static void
reload_scripts (PolkitBackendJsAuthority *authority)
{
- JS::Value argv[1] = {JSVAL_NULL};
- JS::Value rval = JSVAL_NULL;
+ JS::Value argv[1] = {JS::NullValue()};
+ JS::Value rval = JS::NullValue();
JS_BeginRequest (authority->priv->cx);
@@ -1084,8 +1084,8 @@ polkit_backend_js_authority_get_admin_auth_identities (PolkitBackendInteractiveA
{
PolkitBackendJsAuthority *authority = POLKIT_BACKEND_JS_AUTHORITY (_authority);
GList *ret = NULL;
- JS::Value argv[2] = {JSVAL_NULL, JSVAL_NULL};
- JS::Value rval = JSVAL_NULL;
+ JS::Value argv[2] = {JS::NullValue(), JS::NullValue()};
+ JS::Value rval = JS::NullValue();
guint n;
GError *error = NULL;
JSString *ret_jsstr;
@@ -1193,8 +1193,8 @@ polkit_backend_js_authority_check_authorization_sync (PolkitBackendInteractiveAu
{
PolkitBackendJsAuthority *authority = POLKIT_BACKEND_JS_AUTHORITY (_authority);
PolkitImplicitAuthorization ret = implicit;
- JS::Value argv[2] = {JSVAL_NULL, JSVAL_NULL};
- JS::Value rval = JSVAL_NULL;
+ JS::Value argv[2] = {JS::NullValue(), JS::NullValue()};
+ JS::Value rval = JS::NullValue();
GError *error = NULL;
JSString *ret_jsstr;
const jschar *ret_utf16;