From: Daniel Espinosa Date: Mon, 3 Jan 2022 01:54:01 +0000 (-0600) Subject: SwitchSection: avoid static access to Report X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc93e41fba1c1ba5e8f28cd3fb0536b598778ccb;p=thirdparty%2Fvala.git SwitchSection: avoid static access to Report --- diff --git a/vala/valaswitchsection.vala b/vala/valaswitchsection.vala index a44256b85..06b070612 100644 --- a/vala/valaswitchsection.vala +++ b/vala/valaswitchsection.vala @@ -89,7 +89,7 @@ public class Vala.SwitchSection : Block { } if (!(parent_node is SwitchStatement)) { - Report.error (source_reference, "no enclosing switch statement found"); + context.report.log_error (source_reference, "no enclosing switch statement found"); error = true; return false; }