aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util.cpp6
-rw-r--r--lib/util.h2
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);
diff --git a/lib/util.h b/lib/util.h
index d94c7321..12d3f8ba 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -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);