From f058e50ddc48888bda83a67b86285793a654d0d6 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 6 Jun 2024 09:06:45 +0200 Subject: [PATCH] CppEditor: Work around deprecation in QCryptographicHash Follows de18b3ff370 in qtbase. Change-Id: Ie50b609b5fbe00ee93a536b2d64d73d5bdf0e61e Reviewed-by: Christian Kandeler --- src/plugins/cppeditor/cppsourceprocessor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/cppeditor/cppsourceprocessor.cpp b/src/plugins/cppeditor/cppsourceprocessor.cpp index 4cdc6962416..7796c5d2ab1 100644 --- a/src/plugins/cppeditor/cppsourceprocessor.cpp +++ b/src/plugins/cppeditor/cppsourceprocessor.cpp @@ -56,11 +56,11 @@ inline QByteArray generateFingerPrint(const QList &definedMacr } else { static const QByteArray def("#define "); hash.addData(macro.name()); - hash.addData(" ", 1); + hash.addData(QByteArrayView(" ", 1)); hash.addData(def); hash.addData(macro.definitionText()); } - hash.addData("\n", 1); + hash.addData(QByteArrayView("\n", 1)); } return hash.result(); }