mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Fixed clazy warnings: empty QStringLiteral.
This commit is contained in:
@@ -617,7 +617,7 @@ namespace BlackGui
|
||||
|
||||
QString CGuiUtility::asSimpleHtmlImageWidth(const CIcon &icon, int width)
|
||||
{
|
||||
if (!icon.hasFileResourcePath()) return QStringLiteral("");
|
||||
if (!icon.hasFileResourcePath()) return {};
|
||||
const QString p = icon.getFileResourcePath();
|
||||
|
||||
static const QString htmlNoWidth("<img src=\"%1\">");
|
||||
@@ -630,7 +630,7 @@ namespace BlackGui
|
||||
QString CGuiUtility::asSimpleHtmlImageHeight(const CIcon &icon, int height)
|
||||
{
|
||||
if (height < 0) { return CGuiUtility::asSimpleHtmlImageWidth(icon); }
|
||||
if (!icon.hasFileResourcePath()) return QStringLiteral("");
|
||||
if (!icon.hasFileResourcePath()) return {};
|
||||
const QString p = icon.getFileResourcePath();
|
||||
|
||||
static const QString htmlHeight("<img src=\"%1\" height=%2>");
|
||||
|
||||
Reference in New Issue
Block a user