]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
AddressOfExpression: use instance context's report methods
authorDaniel Espinosa <esodan@gmail.com>
Wed, 29 Dec 2021 14:50:03 +0000 (08:50 -0600)
committerDaniel Espinosa <esodan@gmail.com>
Mon, 3 Jan 2022 23:51:33 +0000 (17:51 -0600)
Avoids using static Report methods

vala/valaaddressofexpression.vala

index ff542835be2f614b4148252caeae114a6ea5b743..462fa207b048dc9443b3a20b4c8805bac47b30b0 100644 (file)
@@ -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;
                }