]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
CodeWriter: use instance context's report methods
authorDaniel Espinosa <esodan@gmail.com>
Wed, 29 Dec 2021 14:45:56 +0000 (08:45 -0600)
committerDaniel Espinosa <esodan@gmail.com>
Mon, 3 Jan 2022 23:51:33 +0000 (17:51 -0600)
Avoids use static Report methods

vala/valacodewriter.vala

index cb3bd998d9ccac50ff4aa5859a788becfffb7f7d..ebbccc7fe50adc575a6e762a2bd071652c8b55e4 100644 (file)
@@ -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;
                }