fix typos in .cpp files