turn unnamed enum with just one member into const int