diff options
author | Ray Strode <rstrode@redhat.com> | 2018-03-22 13:00:33 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2018-04-03 10:49:39 -0400 |
commit | dbd710c12ec60a2256ab0ffc95f4a94d2b5c5ee4 (patch) | |
tree | 4af2b8aaf43653d17baed049f006bf1d857e44c2 | |
parent | 2f39096f2d819e846e95dfbe4292a2ca0f6236bd (diff) | |
download | polkit-dbd710c12ec60a2256ab0ffc95f4a94d2b5c5ee4.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
-rw-r--r-- | src/polkitbackend/polkitbackendjsauthority.cpp | 12 |
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; |