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

index 04c5952342a49f7dea285afdfed9d62b099f9400..c900d8b3baa334d64d0398932b84386ca8056290 100644 (file)
@@ -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) {