From 594fdeedd04bdd1f21753aafa5498d84fe1e4ee8 Mon Sep 17 00:00:00 2001 From: Daniel Espinosa Date: Sun, 2 Jan 2022 19:29:11 -0600 Subject: [PATCH] Property: avoid static access to Report --- vala/valaproperty.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.47.2