Use removeLast() instead of takeLast() if returned value is not used

GIT_SILENT
parent ca307706
......@@ -885,7 +885,7 @@ QModelIndex ProjectModel::pathToIndex(const QStringList& tofetch_) const
return QModelIndex();
QStringList tofetch(tofetch_);
if(tofetch.last().isEmpty())
tofetch.takeLast();
tofetch.removeLast();
QModelIndex current=index(0,0, QModelIndex());
......
......@@ -129,7 +129,7 @@ struct FrameListHandler : public MICommandHandler
bool hasMore = false;
if (!frames.isEmpty()) {
if (frames.last().nr == m_to+1) {
frames.takeLast();
frames.removeLast();
hasMore = true;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment