[vala] Always use public accessibility for enum values
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Always use public accessibility for enum values
- Date: Sun, 3 Oct 2010 20:20:57 +0000 (UTC)
commit aeab3722f28b65a73507c0ca5e8c9b3265c78e22
Author: Jürg Billeter <j bitron ch>
Date: Sun Oct 3 22:10:00 2010 +0200
Always use public accessibility for enum values
vala/valaenum.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/vala/valaenum.vala b/vala/valaenum.vala
index 27e950d..629c2c5 100644
--- a/vala/valaenum.vala
+++ b/vala/valaenum.vala
@@ -62,6 +62,8 @@ public class Vala.Enum : TypeSymbol {
* @param value an enum value
*/
public void add_value (EnumValue value) {
+ value.access = SymbolAccessibility.PUBLIC;
+
values.add (value);
scope.add (value.name, value);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]