[vala/1270-remove-static-codecontext-access: 40/44] Property: avoid static access to Report




commit 594fdeedd04bdd1f21753aafa5498d84fe1e4ee8
Author: Daniel Espinosa <esodan gmail com>
Date:   Sun Jan 2 19:29:11 2022 -0600

    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 */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]