Skip to content

Commit

Permalink
Fix embed.cpp compilation
Browse files Browse the repository at this point in the history
Fix implicit conversion from int when using QString.arg(...)
  • Loading branch information
tresf authored May 18, 2024
1 parent b008d0a commit 0fdf986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/embed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ auto getIconPixmap(std::string_view name, int width, int height, const char* con

const auto pixmapName = QString::fromUtf8(name.data(), name.size());
const auto cacheName = (width > 0 && height > 0)
? QStringLiteral("%1_%2_%3").arg(pixmapName, width, height)
? QStringLiteral("%1_%2_%3").arg(pixmapName).arg(width).arg(height)
: pixmapName;

// Return cached pixmap if it exists
Expand Down

0 comments on commit 0fdf986

Please sign in to comment.