[vala/1270-remove-static-codecontext-access: 38/44] Parameter: avoid static access to Report
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [vala/1270-remove-static-codecontext-access: 38/44] Parameter: avoid static access to Report
 
- Date: Mon,  3 Jan 2022 23:53:28 +0000 (UTC)
 
commit 6f788d583649ab0cae888f8f83e0659d8863d4c4
Author: Daniel Espinosa <esodan gmail com>
Date:   Sun Jan 2 19:19:10 2022 -0600
    Parameter: avoid static access to Report
 vala/valaparameter.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valaparameter.vala b/vala/valaparameter.vala
index 82b761c61..25cdf19ae 100644
--- a/vala/valaparameter.vala
+++ b/vala/valaparameter.vala
@@ -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");
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]