Fix numerous warnings arising from addition of -Weffc++.
5 files changed