We started using std::as_const() in some parts of kwin, so let's use it everywhere for the code consistency sake.