diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-12-29 04:28:08 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-12-29 04:52:52 +0100 |
commit | d8ead9573b6fd45e386d54b9aaec4e1c335b10ec (patch) | |
tree | 514d00ee26e67fc8bfeff403858e7d4ef276e6e3 /src/AvatarProvider.cpp | |
parent | use more literals (diff) | |
download | nheko-d8ead9573b6fd45e386d54b9aaec4e1c335b10ec.tar.xz |
Reduce allocations using QStringLiteral
Diffstat (limited to 'src/AvatarProvider.cpp')
-rw-r--r-- | src/AvatarProvider.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AvatarProvider.cpp b/src/AvatarProvider.cpp index 177bf903..b912a9b6 100644 --- a/src/AvatarProvider.cpp +++ b/src/AvatarProvider.cpp @@ -22,7 +22,7 @@ namespace AvatarProvider { void resolve(QString avatarUrl, int size, QObject *receiver, AvatarCallback callback) { - const auto cacheKey = QString("%1_size_%2").arg(avatarUrl).arg(size); + const auto cacheKey = QStringLiteral("%1_size_%2").arg(avatarUrl).arg(size); QPixmap pixmap; if (avatarUrl.isEmpty()) { |