[vala/1270-remove-static-codecontext-access: 17/44] 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: 17/44] CodeWriter: use instance context's report methods
- Date: Mon, 3 Jan 2022 23:53:27 +0000 (UTC)
commit 179645795413c8e8c590a87f4ff47b26ec7ec3b5
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]