[gnome-builder] task: intern source location as static string
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] task: intern source location as static string
- Date: Wed, 21 Mar 2018 23:35:23 +0000 (UTC)
commit e5a2751e73532b2b2430dc1ad73a2e8224e47d49
Author: Christian Hergert <chergert redhat com>
Date: Wed Mar 21 16:34:35 2018 -0700
task: intern source location as static string
This does not need to be copied for intern'ing, as it will already be in
the data section. We can just use the raw string pointer.
src/libide/threading/ide-task.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/threading/ide-task.h b/src/libide/threading/ide-task.h
index c46fa5fcf..54b4a4a9b 100644
--- a/src/libide/threading/ide-task.h
+++ b/src/libide/threading/ide-task.h
@@ -167,7 +167,7 @@ void ide_task_report_new_error (gpointer source_o
# define ide_task_new(self, cancellable, callback, user_data) \
({ \
IdeTask *__ide_task = (ide_task_new) (self, cancellable, callback, user_data); \
- ide_task_set_name (__ide_task, G_STRLOC); \
+ ide_task_set_name (__ide_task, g_intern_static_string (G_STRLOC)); \
__ide_task; \
})
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]