TOLTECS: Apply CppCheck performance recommendations