[vala/1270-remove-static-codecontext-access] SourceFile: use 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] SourceFile: use context's report methods
- Date: Fri, 31 Dec 2021 19:53:37 +0000 (UTC)
commit 7b0a0ca2b57fb210954ade766920d1aebb142729
Author: Daniel Espinosa <esodan gmail com>
Date: Wed Dec 29 08:51:47 2021 -0600
SourceFile: use context's report methods
Avoids use Report's static methods
vala/valasourcefile.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valasourcefile.vala b/vala/valasourcefile.vala
index 9d8808038..fb440da33 100644
--- a/vala/valasourcefile.vala
+++ b/vala/valasourcefile.vala
@@ -349,7 +349,7 @@ public class Vala.SourceFile {
try {
mapped_file = new MappedFile (filename, false);
} catch (FileError e) {
- Report.error (null, "Unable to map file `%s': %s", filename, e.message);
+ context.report.log_error (null, "Unable to map file `%s': %s", filename,
e.message);
return null;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]