]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Parameter: avoid static access to Report
authorDaniel Espinosa <esodan@gmail.com>
Mon, 3 Jan 2022 01:19:10 +0000 (19:19 -0600)
committerDaniel Espinosa <esodan@gmail.com>
Mon, 3 Jan 2022 23:51:34 +0000 (17:51 -0600)
vala/valaparameter.vala

index 82b761c61d38761308fb0eee019c80346662b498..25cdf19ae7f91933986c50658e74fa594ef18172 100644 (file)
@@ -189,7 +189,7 @@ public class Vala.Parameter : Variable {
                        if (initializer is NullLiteral
                            && !variable_type.nullable
                            && direction != ParameterDirection.OUT) {
-                               Report.warning (source_reference, "`null' incompatible with parameter type `%s'", variable_type.to_string ());
+                               context.report.log_warning (source_reference, "`null' incompatible with parameter type `%s'", variable_type.to_string ());
                        } else if (!(initializer is NullLiteral) && direction == ParameterDirection.OUT) {
                                error = true;
                                context.report.log_error (source_reference, "only `null' is allowed as default value for out parameters");