Index: src/AST/Decl.cpp
===================================================================
--- src/AST/Decl.cpp	(revision e4b6cf78dcc1d57c24f7b0c95fc9417c02ee0798)
+++ src/AST/Decl.cpp	(revision d7aa12cdc492280c782bdc2eda1f42fba8598ec9)
@@ -72,8 +72,8 @@
 // --- EnumDecl
 
-bool EnumDecl::valueOf( Decl* enumerator, long long& value ) const {
+bool EnumDecl::valueOf( const Decl * enumerator, long long& value ) const {
 	if ( enumValues.empty() ) {
 		long long crntVal = 0;
-		for ( const Decl* member : members ) {
+		for ( const Decl * member : members ) {
 			const ObjectDecl* field = strict_dynamic_cast< const ObjectDecl* >( member );
 			if ( field->init ) {
Index: src/AST/Decl.hpp
===================================================================
--- src/AST/Decl.hpp	(revision e4b6cf78dcc1d57c24f7b0c95fc9417c02ee0798)
+++ src/AST/Decl.hpp	(revision d7aa12cdc492280c782bdc2eda1f42fba8598ec9)
@@ -287,5 +287,5 @@
 
 	/// gets the integer value for this enumerator, returning true iff value found
-	bool valueOf( Decl* enumerator, long long& value ) const;
+	bool valueOf( const Decl * enumerator, long long& value ) const;
 
 	const Decl * accept( Visitor & v ) const override { return v.visit( this ); }
