[vala/1270-remove-static-codecontext-access] CodeWriter: use instance context's report methods



commit c8ccb8518216ae98f2a11b1c59cc72681299c07d
Author: Daniel Espinosa <esodan gmail com>
Date:   Wed Dec 29 08:45:56 2021 -0600

    CodeWriter: use instance context's report methods
    
    Avoids use static Report methods

 vala/valacodewriter.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index cb3bd998d..ebbccc7fe 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -79,7 +79,7 @@ public class Vala.CodeWriter : CodeVisitor {
                }
 
                if (stream == null) {
-                       Report.error (null, "unable to open `%s' for writing", filename);
+                       context.report.log_error (null, "unable to open `%s' for writing", filename);
                        return;
                }
 


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