CPlusPlus: Avoid a few deprecation warnings

The alternatives have been around since 2012.

Change-Id: I0aa15d59efe8a547e2ad622ffda689746960d48c
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
hjk
2019-06-04 13:37:45 +02:00
parent 761ba941ec
commit 2f7ca2ce44
7 changed files with 10 additions and 14 deletions

View File

@@ -228,8 +228,7 @@ public:
if (fileName != doc->fileName())
return;
QString message;
message.vsprintf(format, ap);
const QString message = QString::vasprintf(format, ap);
#ifndef DO_NOT_DUMP_ALL_PARSER_ERRORS
{