mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-29 21:33:13 -08:00
Reduce unnecessary copies using move semantics
This commit is contained in:
10 files changed
+24
-13
No files matched your search
@@ -18,6 +18,8 @@
|
||||
|
||||
#include "CsvParserModel.h"
|
||||
|
||||
#include <utility>
|
||||
|
||||
CsvParserModel::CsvParserModel(QObject* parent)
|
||||
: QAbstractTableModel(parent)
|
||||
, m_skipped(0)
|
||||
@@ -92,7 +94,7 @@ void CsvParserModel::setSkippedRows(int skipped)
|
||||
|
||||
void CsvParserModel::setHeaderLabels(QStringList l)
|
||||
{
|
||||
m_columnHeader = l;
|
||||
m_columnHeader = std::move(l);
|
||||
}
|
||||
|
||||
int CsvParserModel::rowCount(const QModelIndex& parent) const
|
||||
|
||||
Reference in new issue
Block a user