@@ -202,23 +202,23 @@ void ResultsTree::initialize(QSettings *settings, ApplicationList *list, ThreadH
202202
203203ResultItem *ResultsTree::createNormalItem (const QString &text, QSharedPointer<ErrorItem> errorItem, ResultItem::Type type, int errorPathIndex)
204204{
205- auto *item = new ResultItem (errorItem, type, errorPathIndex);
205+ auto *item = new ResultItem (std::move ( errorItem) , type, errorPathIndex);
206206 item->setText (text);
207207 item->setEditable (false );
208208 return item;
209209}
210210
211211ResultItem *ResultsTree::createFilenameItem (QSharedPointer<ErrorItem> errorItem, ResultItem::Type type, int errorPathIndex)
212212{
213- auto *item = new ResultItem (errorItem, type, errorPathIndex);
213+ auto *item = new ResultItem (std::move ( errorItem) , type, errorPathIndex);
214214 item->setText (QDir::toNativeSeparators (stripPath (errorItem->errorPath [errorPathIndex].file , false )));
215215 item->setEditable (false );
216216 return item;
217217}
218218
219219ResultItem *ResultsTree::createCheckboxItem (bool checked, QSharedPointer<ErrorItem> errorItem, ResultItem::Type type, int errorPathIndex)
220220{
221- auto *item = new ResultItem (errorItem, type, errorPathIndex);
221+ auto *item = new ResultItem (std::move ( errorItem) , type, errorPathIndex);
222222 item->setCheckable (true );
223223 item->setCheckState (checked ? Qt::Checked : Qt::Unchecked);
224224 item->setEnabled (false );
@@ -227,7 +227,7 @@ ResultItem *ResultsTree::createCheckboxItem(bool checked, QSharedPointer<ErrorIt
227227
228228ResultItem *ResultsTree::createLineNumberItem (int linenumber, QSharedPointer<ErrorItem> errorItem, ResultItem::Type type, int errorPathIndex)
229229{
230- auto *item = new ResultItem (errorItem, type, errorPathIndex);
230+ auto *item = new ResultItem (std::move ( errorItem) , type, errorPathIndex);
231231 item->setText (QString::number (linenumber));
232232 item->setTextAlignment (Qt::AlignRight | Qt::AlignVCenter);
233233 item->setEditable (false );
0 commit comments