OSDN Git Service

syndication: fix build after 834866b9
authorIvailo Monev <xakepa10@gmail.com>
Fri, 1 Apr 2016 06:17:02 +0000 (06:17 +0000)
committerIvailo Monev <xakepa10@gmail.com>
Fri, 1 Apr 2016 06:17:02 +0000 (06:17 +0000)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
syndication/tools.cpp

index eae7bbf..648873b 100644 (file)
@@ -112,7 +112,8 @@ QString dateTimeToString(time_t date)
 
 QString calcMD5Sum(const QString& str)
 {
-    return QLatin1String(QCryptographicHash::hash(str.toUtf8(), QCryptographicHash::Md5).toHex());
+    QByteArray hash = QCryptographicHash::hash(str.toUtf8(), QCryptographicHash::Md5);
+    return QLatin1String(hash.toHex().constData());
 }
 
 QString resolveEntities(const QString& str)