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.45.1~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7443e70f576cdf6b1bcddae1993c461876840a7;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); }