forked from qt-creator/qt-creator
Fix warning: "Don't call QList::last() on temporary"
[-Wclazy-detaching-temporary] Change-Id: I5e06e44fc45c80ea1dca518611d4f0c28a738061 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -309,8 +309,8 @@ void QuickToolBar::setProperty(const QString &propertyName, const QVariant &valu
|
||||
|
||||
int column;
|
||||
|
||||
int changeSetPos = changeSet.operationList().last().pos1;
|
||||
int changeSetLength = changeSet.operationList().last().text.length();
|
||||
int changeSetPos = changeSet.operationList().constLast().pos1;
|
||||
int changeSetLength = changeSet.operationList().constLast().text.length();
|
||||
QTextCursor tc = m_editorWidget->textCursor();
|
||||
tc.beginEditBlock();
|
||||
changeSet.apply(&tc);
|
||||
|
||||
Reference in New Issue
Block a user