diff options
author | Ray Strode <rstrode@redhat.com> | 2018-03-22 13:00:33 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2018-03-28 16:46:35 -0400 |
commit | 72dae4cb1df1f5b655116141a3ad739a6e0db9f8 (patch) | |
tree | 67cfddeaa01d913fc69244de4c3e97d26a6cd38b | |
parent | 08075fbce5ec1f297f574d4b36c9a2d03ad3adb0 (diff) | |
download | polkit-72dae4cb1df1f5b655116141a3ad739a6e0db9f8.tar.gz |
jsauthority: JSVAL_TO_OBJECT (o) to o.toObjectOrNull()
-rw-r--r-- | src/polkitbackend/polkitbackendjsauthority.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp index a8ca5a1..3d9a57f 100644 --- a/src/polkitbackend/polkitbackendjsauthority.cpp +++ b/src/polkitbackend/polkitbackendjsauthority.cpp @@ -771,7 +771,7 @@ subject_to_jsval (PolkitBackendJsAuthority *authority, goto out; } - obj = JSVAL_TO_OBJECT (ret_jsval); + obj = ret_jsval.toObjectOrNull(); if (POLKIT_IS_UNIX_PROCESS (subject)) { @@ -896,7 +896,7 @@ action_and_details_to_jsval (PolkitBackendJsAuthority *authority, goto out; } - obj = JSVAL_TO_OBJECT (ret_jsval); + obj = ret_jsval.toObjectOrNull(); set_property_str (authority, obj, "id", action_id); |