mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
clean: deprecated QCryptographicHash::addData
This commit is contained in:
parent
90d55d7392
commit
94ea6c570c
|
@ -516,7 +516,8 @@ string makeDictionaryId( vector< string > const & dictionaryFiles ) noexcept
|
|||
QCryptographicHash hash( QCryptographicHash::Md5 );
|
||||
|
||||
for ( const auto & i : sortedList ) {
|
||||
hash.addData( i.c_str(), i.size() + 1 );
|
||||
// Note: a null byte at the end is a must
|
||||
hash.addData( { i.c_str(), static_cast< qsizetype >( i.size() + 1 ) } );
|
||||
}
|
||||
|
||||
return hash.result().toHex().data();
|
||||
|
|
Loading…
Reference in a new issue