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



commit b77f29ed0f0932430e3152c2e2d60a8a1cfc20d2
Author: Daniel Espinosa <esodan gmail com>
Date:   Wed Dec 29 08:50:03 2021 -0600

    AddressOfExpression: use instance context's report methods
    
    Avoids using static Report methods

 vala/valaaddressofexpression.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valaaddressofexpression.vala b/vala/valaaddressofexpression.vala
index ff542835b..462fa207b 100644
--- a/vala/valaaddressofexpression.vala
+++ b/vala/valaaddressofexpression.vala
@@ -104,7 +104,7 @@ public class Vala.AddressofExpression : Expression {
                        // address of element of regular array or pointer is always possible
                } else {
                        error = true;
-                       Report.error (source_reference, "Address-of operator not supported for this 
expression");
+                       context.report.log_error (source_reference, "Address-of operator not supported for 
this expression");
                        return false;
                }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]