CppEditor: Fix compile with MSVC 2010

Change-Id: I9f553d7fa23620761213df525877c694a540a652
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>