perf: Fix all clazy qstring-allocation warnings (#903)
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
float QtGraphViewStyleImpl::getCharWidth(const std::string& fontName, size_t fontSize)
|
||||
{
|
||||
return QFontMetrics(getFontForStyleType(fontName, fontSize))
|
||||
.width("QtGraphNode::QtGraphNode::QtGraphNode") /
|
||||
.width(QStringLiteral("QtGraphNode::QtGraphNode::QtGraphNode")) /
|
||||
37.0f;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user