diff options
Diffstat (limited to 'gcc/d/dmd/denum.c')
-rw-r--r-- | gcc/d/dmd/denum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/d/dmd/denum.c b/gcc/d/dmd/denum.c index f96380f..b881fb6 100644 --- a/gcc/d/dmd/denum.c +++ b/gcc/d/dmd/denum.c @@ -37,7 +37,7 @@ EnumDeclaration::EnumDeclaration(Loc loc, Identifier *id, Type *memtype) defaultval = NULL; sinit = NULL; isdeprecated = false; - protection = Prot(PROTundefined); + protection = Prot(Prot::undefined); parent = NULL; added = false; inuse = 0; @@ -550,7 +550,7 @@ void EnumMember::semantic(Scope *sc) semanticRun = PASSsemantic; - protection = ed->isAnonymous() ? ed->protection : Prot(PROTpublic); + protection = ed->isAnonymous() ? ed->protection : Prot(Prot::public_); linkage = LINKd; storage_class = STCmanifest; userAttribDecl = ed->isAnonymous() ? ed->userAttribDecl : NULL; |