[vala/1270-remove-static-codecontext-access: 43/44] SwitchSection: avoid static access to Report




commit bc93e41fba1c1ba5e8f28cd3fb0536b598778ccb
Author: Daniel Espinosa <esodan gmail com>
Date:   Sun Jan 2 19:54:01 2022 -0600

    SwitchSection: avoid static access to Report

 vala/valaswitchsection.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
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;
                }


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