summaryrefslogtreecommitdiff
path: root/quackleio/dawgfactory.cpp
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2023-07-19 18:08:38 -0500
committerJohn Fultz <jfultz@wolfram.com>2023-07-19 22:38:25 -0500
commiteb8deb67284b5950a4748a091f52d1eb11284c39 (patch)
tree98a3ae7b51e7bb35eef1bcde106673de19385916 /quackleio/dawgfactory.cpp
parentd302abb430f5cb75e7373197c91e269fdbaf2e61 (diff)
Fix various Qt6 deprecations.
Diffstat (limited to 'quackleio/dawgfactory.cpp')
-rw-r--r--quackleio/dawgfactory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/quackleio/dawgfactory.cpp b/quackleio/dawgfactory.cpp
index a320f5c..b5f4fc0 100644
--- a/quackleio/dawgfactory.cpp
+++ b/quackleio/dawgfactory.cpp
@@ -77,7 +77,7 @@ bool DawgFactory::pushWord(const Quackle::LetterString &word, bool inSmaller, in
void DawgFactory::hashWord(const Quackle::LetterString &word)
{
QCryptographicHash wordhash(QCryptographicHash::Md5);
- wordhash.addData(word.constData(), word.length());
+ wordhash.addData(QByteArray::fromRawData(word.constData(), word.length()));
QByteArray wordhashbytes = wordhash.result();
m_hash.int32ptr[0] ^= ((const int32_t*)wordhashbytes.constData())[0];
m_hash.int32ptr[1] ^= ((const int32_t*)wordhashbytes.constData())[1];