Commit e5a2751e authored by Christian Hergert's avatar Christian Hergert
Browse files

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.
parent b15fa1ba
......@@ -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; \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment