diff options
Diffstat (limited to 'lib/util.cpp')
-rw-r--r-- | lib/util.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/util.cpp b/lib/util.cpp index be9656f8..cc18d9ab 100644 --- a/lib/util.cpp +++ b/lib/util.cpp @@ -99,10 +99,10 @@ QString Quotient::cacheLocation(const QString& dirName) return cachePath; } -qreal Quotient::stringToHueF(const QString& string) +qreal Quotient::stringToHueF(const QString& s) { - Q_ASSERT(!string.isEmpty()); - QByteArray hash = QCryptographicHash::hash(string.toUtf8(), + Q_ASSERT(!s.isEmpty()); + QByteArray hash = QCryptographicHash::hash(s.toUtf8(), QCryptographicHash::Sha1); QDataStream dataStream(qToLittleEndian(hash).left(2)); dataStream.setByteOrder(QDataStream::LittleEndian); |