From 84b531ab37e271895f751279c1bbc51b6f2ac393 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Sat, 8 Apr 2023 15:50:53 +0200 Subject: Use already available glib_ns instead of root_symbol.scope.lookup ("GLib") --- vala/valasemanticanalyzer.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vala') diff --git a/vala/valasemanticanalyzer.vala b/vala/valasemanticanalyzer.vala index 98f8e1cf5..a5076a2fe 100644 --- a/vala/valasemanticanalyzer.vala +++ b/vala/valasemanticanalyzer.vala @@ -234,7 +234,7 @@ public class Vala.SemanticAnalyzer : CodeVisitor { gsequence_type = new ObjectType ((Class) glib_ns.scope.lookup ("Sequence")); gerror_type = (Class) glib_ns.scope.lookup ("Error"); - regex_type = new ObjectType ((Class) root_symbol.scope.lookup ("GLib").scope.lookup ("Regex")); + regex_type = new ObjectType ((Class) glib_ns.scope.lookup ("Regex")); gsource_type = (Class) glib_ns.scope.lookup ("Source"); -- cgit v1.2.1