Fixed cpp class snippets.