[vala/1270-remove-static-codecontext-access: 29/44] Constant: use context when available to avoid report static access
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/1270-remove-static-codecontext-access: 29/44] Constant: use context when available to avoid report static access
- Date: Mon, 3 Jan 2022 23:53:28 +0000 (UTC)
commit 406111ade83eac1b865faf95dde18484165a2c9f
Author: Daniel Espinosa <esodan gmail com>
Date: Sun Jan 2 17:44:52 2022 -0600
Constant: use context when available to avoid report static access
vala/valaconstant.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valaconstant.vala b/vala/valaconstant.vala
index 0b6820fea..24ace8e0f 100644
--- a/vala/valaconstant.vala
+++ b/vala/valaconstant.vala
@@ -183,7 +183,7 @@ public class Vala.Constant : Symbol {
}
if (!external_package && !hides && get_hidden_member () != null) {
- Report.warning (source_reference, "%s hides inherited constant `%s'. Use the `new'
keyword if hiding was intentional", get_full_name (), get_hidden_member ().get_full_name ());
+ context.report.log_warning (source_reference, "%s hides inherited constant `%s'. Use
the `new' keyword if hiding was intentional", get_full_name (), get_hidden_member ().get_full_name ());
}
context.analyzer.current_source_file = old_source_file;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]