[gnome-builder] clang: use ide_file_new
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] clang: use ide_file_new
- Date: Sat, 13 Jan 2018 11:35:33 +0000 (UTC)
commit 563f62db9f26a336fc418ac3fcb11ed8223c5f67
Author: Christian Hergert <chergert redhat com>
Date: Sat Jan 13 03:33:08 2018 -0800
clang: use ide_file_new
src/plugins/clang/ide-clang-symbol-node.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/plugins/clang/ide-clang-symbol-node.c b/src/plugins/clang/ide-clang-symbol-node.c
index 3e20555df..962a93361 100644
--- a/src/plugins/clang/ide-clang-symbol-node.c
+++ b/src/plugins/clang/ide-clang-symbol-node.c
@@ -200,10 +200,7 @@ ide_clang_symbol_node_get_location_async (IdeSymbolNode *symbol_node,
context = ide_object_get_context (IDE_OBJECT (self));
gfile = g_file_new_for_path (filename);
- ifile = g_object_new (IDE_TYPE_FILE,
- "file", gfile,
- "context", context,
- NULL);
+ ifile = ide_file_new (context, gfile);
g_task_return_pointer (task,
ide_source_location_new (ifile, line-1, line_offset-1, 0),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]