[vala/1270-remove-static-codecontext-access] CodeWriter: use instance context's report methods
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/1270-remove-static-codecontext-access] CodeWriter: use instance context's report methods
- Date: Fri, 31 Dec 2021 19:53:37 +0000 (UTC)
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]