mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Replace single-character string with character literal
Also remove unnecessary dynamic allocation.
This commit is contained in:
@@ -73,7 +73,7 @@ QPixmap Utils::Gui::scaledPixmap(const QString &path, const QWidget *widget, con
|
||||
QPixmap Utils::Gui::scaledPixmapSvg(const QString &path, const QWidget *widget, const int baseHeight)
|
||||
{
|
||||
const int scaledHeight = baseHeight * Utils::Gui::screenScalingFactor(widget);
|
||||
const QString normalizedKey = path + "@" + QString::number(scaledHeight);
|
||||
const QString normalizedKey = path + '@' + QString::number(scaledHeight);
|
||||
|
||||
QPixmap pm;
|
||||
QPixmapCache cache;
|
||||
|
||||
Reference in New Issue
Block a user