[clean-up] Remove more const stuff

Avoid unneeded casting.

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>