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

index 9c3779a1905a175d116c223326c241368a6fbf74..fd23288b716d01595226597a47a0dba4f780c16a 100644 (file)
@@ -364,7 +364,7 @@ public class Vala.MethodCall : Expression, CallableExpression {
                                        if (ma.member_name != "end") {
                                                // begin (possibly implicit)
                                                if (ma.member_name != "begin") {
-                                                       Report.deprecated (ma.source_reference, "implicit .begin is deprecated");
+                                                       context.report.log_deprecated (ma.source_reference, "implicit .begin is deprecated");
                                                }
                                                params = m.get_async_begin_parameters ();
                                                ret_type = new VoidType ();