]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
ObjectTypeSymbol: use context when available to avoid report static access
authorDaniel Espinosa <esodan@gmail.com>
Sun, 2 Jan 2022 22:58:45 +0000 (16:58 -0600)
committerDaniel Espinosa <esodan@gmail.com>
Mon, 3 Jan 2022 23:51:33 +0000 (17:51 -0600)
vala/valaobjecttypesymbol.vala

index 97f1f0f2c978f2d45def9fd32decf0b3d2d07ad4..2dbe1ef1ca73c773b73abd9ed74898cbad33569f 100644 (file)
@@ -383,7 +383,7 @@ public abstract class Vala.ObjectTypeSymbol : TypeSymbol {
 
                if (!external_package && get_attribute ("DBus") != null && !context.has_package ("gio-2.0")) {
                        error = true;
-                       Report.error (source_reference, "gio-2.0 package required for DBus support");
+                       context.report.log_error (source_reference, "gio-2.0 package required for DBus support");
                }
 
                return !error;