Reduce usage of QStringRef::toString() in cppcodeformatter.cpp.

Change-Id: Iff4634c3bd3829d236e3dd38e4d29ced5f118db6
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>