Fix shadowed function names

Clang rightfully noticed the usage of local function overloads shadowing the
name of a virtual function. This has been fixed.
Merge pull request #376 from kaihowl/feature/clangwarning

Fix shadowed function names