]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Constructor: use context when available to avoid report static access
authorDaniel Espinosa <esodan@gmail.com>
Sun, 2 Jan 2022 23:49:41 +0000 (17:49 -0600)
committerDaniel Espinosa <esodan@gmail.com>
Mon, 3 Jan 2022 23:51:34 +0000 (17:51 -0600)
vala/valaconstructor.vala

index 8c916f8a520517e9245925ce376206b89e9251c7..fbfc2f1d63d212418a744cd21c3dda359e1093bf 100644 (file)
@@ -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());
                                }
                        }
                }