Repaired const-correctenss. WHy did the compiler not complain?