From: Daniel Espinosa Date: Mon, 3 Jan 2022 00:41:32 +0000 (-0600) Subject: CreationMethod: avoid static report access X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33150485d7be21487cbcfba5459ba374a8792f1e;p=thirdparty%2Fvala.git CreationMethod: avoid static report access --- diff --git a/vala/valacreationmethod.vala b/vala/valacreationmethod.vala index 9e79045e8..6bfbd7fb9 100644 --- a/vala/valacreationmethod.vala +++ b/vala/valacreationmethod.vala @@ -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()); } } }