]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Property: avoid static access to Report
authorDaniel Espinosa <esodan@gmail.com>
Mon, 3 Jan 2022 01:29:11 +0000 (19:29 -0600)
committerDaniel Espinosa <esodan@gmail.com>
Mon, 3 Jan 2022 23:51:34 +0000 (17:51 -0600)
vala/valaproperty.vala

index 6d95a452f935334382541fcc7f48e61995bdd767..f3685d40ced195f27dd6f216477b1b3edae4013f 100644 (file)
@@ -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 */