CppEditor: Work around deprecation in QCryptographicHash

Follows de18b3ff370 in qtbase.

Change-Id: Ie50b609b5fbe00ee93a536b2d64d73d5bdf0e61e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2024-06-06 09:06:45 +02:00
parent e2b11b0ed6
commit f058e50ddc

View File

@@ -56,11 +56,11 @@ inline QByteArray generateFingerPrint(const QList<CPlusPlus::Macro> &definedMacr
} else { } else {
static const QByteArray def("#define "); static const QByteArray def("#define ");
hash.addData(macro.name()); hash.addData(macro.name());
hash.addData(" ", 1); hash.addData(QByteArrayView(" ", 1));
hash.addData(def); hash.addData(def);
hash.addData(macro.definitionText()); hash.addData(macro.definitionText());
} }
hash.addData("\n", 1); hash.addData(QByteArrayView("\n", 1));
} }
return hash.result(); return hash.result();
} }