diff options
-rw-r--r-- | lib/util.cpp | 6 | ||||
-rw-r--r-- | lib/util.h | 2 |
2 files changed, 4 insertions, 4 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); @@ -326,7 +326,7 @@ QString cacheLocation(const QString& dirName); * Naming and range are the same as QColor's hueF method: * https://doc.qt.io/qt-5/qcolor.html#integer-vs-floating-point-precision */ -qreal stringToHueF(const QString& string); +qreal stringToHueF(const QString& s); /** Extract the serverpart from MXID */ QString serverPart(const QString& mxId); |