[vala/1270-remove-static-codecontext-access: 30/44] Constructor: use context when available to avoid report static access




commit 999c8c5a8ac1ddb2a2bc2107197aa7ffa91ec5cc
Author: Daniel Espinosa <esodan gmail com>
Date:   Sun Jan 2 17:49:41 2022 -0600

    Constructor: use context when available to avoid report static access

 vala/valaconstructor.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valaconstructor.vala b/vala/valaconstructor.vala
index 8c916f8a5..fbfc2f1d6 100644
--- a/vala/valaconstructor.vala
+++ b/vala/valaconstructor.vala
@@ -83,7 +83,7 @@ public class Vala.Constructor : Subroutine {
                        body.get_error_types (body_errors);
                        foreach (DataType body_error_type in body_errors) {
                                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]