forked from qt-creator/qt-creator
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:
@@ -56,11 +56,11 @@ inline QByteArray generateFingerPrint(const QList<CPlusPlus::Macro> &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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user