[vala/1270-remove-static-codecontext-access: 31/44] CreationMethod: avoid static report access




commit 33150485d7be21487cbcfba5459ba374a8792f1e
Author: Daniel Espinosa <esodan gmail com>
Date:   Sun Jan 2 18:41:32 2022 -0600

    CreationMethod: avoid static report access

 vala/valacreationmethod.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
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());
                                }
                        }
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]