[vala/1270-remove-static-codecontext-access: 39/44] PropertyAccessor: avoid static access to Report
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/1270-remove-static-codecontext-access: 39/44] PropertyAccessor: avoid static access to Report
- Date: Mon, 3 Jan 2022 23:53:28 +0000 (UTC)
commit 8f48458e248911d1801f560c467fe5af15404cec
Author: Daniel Espinosa <esodan gmail com>
Date: Sun Jan 2 19:27:02 2022 -0600
PropertyAccessor: avoid static access to Report
vala/valapropertyaccessor.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vala/valapropertyaccessor.vala b/vala/valapropertyaccessor.vala
index a4123fd14..e3758c465 100644
--- a/vala/valapropertyaccessor.vala
+++ b/vala/valapropertyaccessor.vala
@@ -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 ());
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]