From: Luca Bruno Date: Sat, 4 May 2013 13:35:04 +0000 (+0200) Subject: vala: Use global CodeContext to retrieve root_symbol X-Git-Tag: 0.42.7~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a4ede4a85d31ab8dd91e7dba8e6dce2e1b483d5;p=thirdparty%2Fvala.git vala: Use global CodeContext to retrieve root_symbol --- diff --git a/vala/valaerrortype.vala b/vala/valaerrortype.vala index 7a7946643..054fe8031 100644 --- a/vala/valaerrortype.vala +++ b/vala/valaerrortype.vala @@ -112,8 +112,7 @@ public class Vala.ErrorType : ReferenceType { } public override Symbol? get_member (string member_name) { - var root_symbol = source_reference.file.context.root; - var gerror_symbol = root_symbol.scope.lookup ("GLib").scope.lookup ("Error"); + var gerror_symbol = CodeContext.get ().root.scope.lookup ("GLib").scope.lookup ("Error"); return gerror_symbol.scope.lookup (member_name); }