Changed constness

in order to make using event data directly after receiving it easier.