diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2016-09-05 15:09:07 -0700 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2016-09-27 19:32:01 -0700 |
commit | ea52a3dca0e9b5fb2e53625ec3d3ed897b542f8b (patch) | |
tree | ad053fe41cd40c0a605eeadc61b62919cf6d637f /gjs/jsapi-util-error.cpp | |
parent | e26191a137fc671b5e8fc8c18d5d6103edaa8b35 (diff) | |
download | gjs-ea52a3dca0e9b5fb2e53625ec3d3ed897b542f8b.tar.gz |
js: Prefer bool to gboolean
Since we removed JSBool, JS_TRUE, and JS_FALSE in the previous commit, we
now also make usage of gboolean, TRUE, and FALSE consistent. In some
places, JSBool and gboolean were used interchangeably. Here, we take the
approach of using C++ bool, true, and false everywhere, except when
required by the API, e.g. for the return type of idle functions.
In a few instances, TRUE and FALSE were used in comments in JS code; here
we change those to true and false to avoid confusion.
Fixes a few formatting glitches in lines of code that were touched
anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=742249
Diffstat (limited to 'gjs/jsapi-util-error.cpp')
-rw-r--r-- | gjs/jsapi-util-error.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gjs/jsapi-util-error.cpp b/gjs/jsapi-util-error.cpp index b9dd1a88..c6849a7d 100644 --- a/gjs/jsapi-util-error.cpp +++ b/gjs/jsapi-util-error.cpp @@ -178,7 +178,7 @@ gjs_throw_g_error (JSContext *context, JS_BeginRequest(context); - err_obj = gjs_error_from_gerror(context, error, TRUE); + err_obj = gjs_error_from_gerror(context, error, true); g_error_free (error); if (err_obj) JS_SetPendingException(context, JS::ObjectValue(*err_obj)); |