Use QString's multi-arg overload to save memory allocations. [-Wclazy-qstring-arg] Thanks Clazy!
This commit is contained in:
committed by
wmayer
parent
216106e407
commit
317bcd59c9
@@ -455,8 +455,8 @@ void DrawingView::onRelabel(Gui::Document *pDoc)
|
||||
{
|
||||
if (!bIsPassive && pDoc) {
|
||||
QString cap = QString::fromLatin1("%1 : %2[*]")
|
||||
.arg(QString::fromUtf8(pDoc->getDocument()->Label.getValue()))
|
||||
.arg(objectName());
|
||||
.arg(QString::fromUtf8(pDoc->getDocument()->Label.getValue()),
|
||||
objectName());
|
||||
setWindowTitle(cap);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user