cppcheck performance fixes in cores/playercorefactory
Merge pull request #6002 from tobbi/cppcheck_perf_cores_playercorefactory

cppcheck performance fixes in cores/playercorefactory