Fix typical smaller issues from SCA

- use static_cast<>() instead of C-Style cast
- remove unused variables
- init variable in initialization list instead of assign it in constructor body