[vala/1270-remove-static-codecontext-access: 37/44] ObjectCreationExpression: avoid static access to Report




commit 50190ef5df0035da293b751e7d9af11bba24a9bf
Author: Daniel Espinosa <esodan gmail com>
Date:   Sun Jan 2 19:16:17 2022 -0600

    ObjectCreationExpression: avoid static access to Report

 vala/valaobjectcreationexpression.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valaobjectcreationexpression.vala b/vala/valaobjectcreationexpression.vala
index 04c595234..c900d8b3b 100644
--- a/vala/valaobjectcreationexpression.vala
+++ b/vala/valaobjectcreationexpression.vala
@@ -318,7 +318,7 @@ public class Vala.ObjectCreationExpression : Expression, CallableExpression {
                        var st = (Struct) type;
 
                        if (!struct_creation && !context.deprecated) {
-                               Report.warning (source_reference, "deprecated syntax, don't use `new' to 
initialize structs");
+                               context.report.log_warning (source_reference, "deprecated syntax, don't use 
`new' to initialize structs");
                        }
 
                        if (symbol_reference == null) {


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