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

index a4123fd143862145d2445ba41eb6cfe0a3f89551..e3758c465ead6d8ef2679f9efc06f9a0075d8dec 100644 (file)
@@ -222,7 +222,7 @@ public class Vala.PropertyAccessor : Subroutine {
                } else if (construction && !context.analyzer.is_gobject_property (prop)) {
                        //TODO Report an error for external property too
                        if (external_package) {
-                               Report.warning (source_reference, "construct properties not supported for specified property type");
+                               context.report.log_warning (source_reference, "construct properties not supported for specified property type");
                        } else {
                                error = true;
                                context.report.log_error (source_reference, "construct properties not supported for specified property type");
@@ -249,7 +249,7 @@ public class Vala.PropertyAccessor : Subroutine {
                        body.get_error_types (error_types);
                        foreach (DataType body_error_type in error_types) {
                                if (!((ErrorType) body_error_type).dynamic_error) {
-                                       Report.warning (body_error_type.source_reference, "unhandled error `%s'", body_error_type.to_string ());
+                                       context.report.log_warning (body_error_type.source_reference, "unhandled error `%s'", body_error_type.to_string ());
                                }
                        }
                }