Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Data/DataSet.cpp (1 of 6 files). Show all
Unified · Split
| @@ -55,10 +55,10 @@ void DataSet::IterateTables(TableIteratorHandlerFunction iteratorHandler, void* · 54 unmodified lines | ||
| 55 | 55 | iteratorHandler(item.second, userData); |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | −bool DataSet::AddOrUpdateTable(const DataTablePtr& table) | |
| 58 | +bool DataSet::AddOrUpdateTable(DataTablePtr table) | |
| 59 | 59 | { |
| 60 | 60 | // Returns true on insert, false on update |
| 61 | − return m_tables.insert_or_assign(table->Name(), table).second; | |
| 61 | + return m_tables.insert_or_assign(table->Name(), std::move(table)).second; | |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | bool DataSet::RemoveTable(const std::string& tableName) |