Skip to content

Commit be811a3

Browse files
committed
clang-tidy move
1 parent 7dc20b8 commit be811a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gui/resultstree.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,23 +202,23 @@ void ResultsTree::initialize(QSettings *settings, ApplicationList *list, ThreadH
202202

203203
ResultItem *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

211211
ResultItem *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

219219
ResultItem *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

228228
ResultItem *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

Comments
 (0)