Use C++11 auto keyword.
Refactor simple slots: replace with lambda.