[gjs: 7/12] maint: Remove trailing spaces
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 7/12] maint: Remove trailing spaces
- Date: Fri, 5 Mar 2021 05:05:09 +0000 (UTC)
commit 2e460e7043cfd30f7e4f3591b8d7e7e01ffa072f
Author: Philip Chimento <philip chimento gmail com>
Date: Thu Feb 18 22:20:42 2021 -0800
maint: Remove trailing spaces
These are annoying, people's editors keep stripping them and they find
their way into diffs, may as well remove them now.
gi/boxed.cpp | 7 +++----
gi/toggle.cpp | 4 ++--
gjs/context.cpp | 10 +++++-----
tools/heapgraph.md | 6 +++---
4 files changed, 13 insertions(+), 14 deletions(-)
---
diff --git a/gi/boxed.cpp b/gi/boxed.cpp
index 83feb2a2..44c2063c 100644
--- a/gi/boxed.cpp
+++ b/gi/boxed.cpp
@@ -146,10 +146,9 @@ void BoxedInstance::allocate_directly(void) {
debug_lifecycle("Boxed pointer directly allocated");
}
-/* When initializing a boxed object from a hash of properties, we don't want
- * to do n O(n) lookups, so put put the fields into a hash table and store it on proto->priv
- * for fast lookup.
- */
+// When initializing a boxed object from a hash of properties, we don't want to
+// do n O(n) lookups, so put put the fields into a hash table and store it on
+// proto->priv for fast lookup.
std::unique_ptr<BoxedPrototype::FieldMap> BoxedPrototype::create_field_map(
JSContext* cx, GIStructInfo* struct_info) {
int n_fields;
diff --git a/gi/toggle.cpp b/gi/toggle.cpp
index 987477b0..5f3d4386 100644
--- a/gi/toggle.cpp
+++ b/gi/toggle.cpp
@@ -150,11 +150,11 @@ ToggleQueue::enqueue(GObject *gobj,
*
* Taking a reference now would be bad anyway, since it would force
* the object to toggle back up again.
- */
+ */
std::lock_guard<std::mutex> hold(lock);
q.push_back(item);
-
+
if (m_idle_id) {
g_assert(((void) "Should always enqueue with the same handler",
m_toggle_handler == handler));
diff --git a/gjs/context.cpp b/gjs/context.cpp
index 13c05d1d..04ff4de2 100644
--- a/gjs/context.cpp
+++ b/gjs/context.cpp
@@ -933,10 +933,10 @@ void GjsContextPrivate::unregister_unhandled_promise_rejection(uint64_t id) {
/**
* gjs_context_maybe_gc:
* @context: a #GjsContext
- *
+ *
* Similar to the Spidermonkey JS_MaybeGC() call which
* heuristically looks at JS runtime memory usage and
- * may initiate a garbage collection.
+ * may initiate a garbage collection.
*
* This function always unconditionally invokes JS_MaybeGC(), but
* additionally looks at memory usage from the system malloc()
@@ -950,7 +950,7 @@ void GjsContextPrivate::unregister_unhandled_promise_rejection(uint64_t id) {
*
* A good time to call this function is when your application
* transitions to an idle state.
- */
+ */
void
gjs_context_maybe_gc (GjsContext *context)
{
@@ -961,10 +961,10 @@ gjs_context_maybe_gc (GjsContext *context)
/**
* gjs_context_gc:
* @context: a #GjsContext
- *
+ *
* Initiate a full GC; may or may not block until complete. This
* function just calls Spidermonkey JS_GC().
- */
+ */
void
gjs_context_gc (GjsContext *context)
{
diff --git a/tools/heapgraph.md b/tools/heapgraph.md
index 441a8979..11a1479c 100644
--- a/tools/heapgraph.md
+++ b/tools/heapgraph.md
@@ -60,11 +60,11 @@ Found 343 targets with type "Object"
$ cat file.tree
├─[vm_stack[1]]─➤ [Object jsobj@0x7fce60683440]
-│
+│
├─[vm_stack[1]]─➤ [Object jsobj@0x7fce606833c0]
-│
+│
├─[exact-Object]─➤ [Object jsobj@0x7fce60683380]
-│
+│
├─[exact-Object]─➤ [GjsGlobal jsobj@0x7fce60680060]
│ ├─[Debugger]─➤ [Function Debugger jsobj@0x7fce606a4540]
│ │ ╰─[Object]─➤ [Function Object jsobj@0x7fce606a9cc0]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]