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



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]