Implementation of cppcheck suggestion to perform initialization in initialization list