fixed errors reported by cppcheck: part 1

partially applied the pull request #182 from Frank Morgner -- updated the common frameworks source files