From: Daniel Espinosa Date: Mon, 3 Jan 2022 01:29:11 +0000 (-0600) Subject: Property: avoid static access to Report X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=594fdeedd04bdd1f21753aafa5498d84fe1e4ee8;p=thirdparty%2Fvala.git Property: avoid static access to Report --- diff --git a/vala/valaproperty.vala b/vala/valaproperty.vala index 6d95a452f..f3685d40c 100644 --- a/vala/valaproperty.vala +++ b/vala/valaproperty.vala @@ -506,7 +506,7 @@ public class Vala.Property : Symbol, Lockable { } if (set_accessor != null) { if (get_attribute ("GtkChild") != null) { - Report.warning (set_accessor.source_reference, "[GtkChild] property `%s' is not allowed to have `set' accessor", get_full_name ()); + context.report.log_warning (set_accessor.source_reference, "[GtkChild] property `%s' is not allowed to have `set' accessor", get_full_name ()); } set_accessor.check (context); } @@ -530,7 +530,7 @@ public class Vala.Property : Symbol, Lockable { } if (!external_package && !overrides && !hides && get_hidden_member () != null) { - Report.warning (source_reference, "%s hides inherited property `%s'. Use the `new' keyword if hiding was intentional", get_full_name (), get_hidden_member ().get_full_name ()); + context.report.log_warning (source_reference, "%s hides inherited property `%s'. Use the `new' keyword if hiding was intentional", get_full_name (), get_hidden_member ().get_full_name ()); } /* construct properties must be public */