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:
@@ -479,7 +479,7 @@ void Parser::Private::parseCostItem(const char *begin, const char *end)
|
||||
|
||||
const CostItem *lastCostItem = nullptr;
|
||||
if (!currentFunction->costItems().isEmpty())
|
||||
lastCostItem = currentFunction->costItems().last();
|
||||
lastCostItem = currentFunction->costItems().constLast();
|
||||
|
||||
// parse positions ("where")
|
||||
for (int i = 0; i < addressValuesCount; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user