]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
CreationMethod: avoid static report access
authorDaniel Espinosa <esodan@gmail.com>
Mon, 3 Jan 2022 00:41:32 +0000 (18:41 -0600)
committerDaniel Espinosa <esodan@gmail.com>
Mon, 3 Jan 2022 23:51:34 +0000 (17:51 -0600)
vala/valacreationmethod.vala

index 9e79045e8da144d6a8ae3ec008ff7f2310ccda59..6bfbd7fb9fc3eda00bfbdf086d067abd143615d2 100644 (file)
@@ -130,7 +130,7 @@ public class Vala.CreationMethod : Method {
                                        continue;
                                }
                                if (!context.experimental) {
-                                       Report.warning (param.source_reference, "Support of params-arrays is experimental");
+                                       context.report.log_warning (param.source_reference, "Support of params-arrays is experimental");
                                }
                                var type = (ArrayType) param.variable_type.copy ();
                                type.element_type.value_owned = type.value_owned;
@@ -231,7 +231,7 @@ public class Vala.CreationMethod : Method {
                                        }
                                }
                                if (!can_propagate_error && !((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());
                                }
                        }
                }