Eliminate a query copy in Results::filter()

This commit is contained in:
Thomas Goyne 2015-11-10 16:07:54 -08:00 committed by Ari Lazier
parent 5683fa1e58
commit a8f1b235d7
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ Results Results::sort(realm::SortOrder&& sort) const
Results Results::filter(Query&& q) const
{
return Results(m_realm, get_query().and_query(q), get_sort());
return Results(m_realm, get_query().and_query(std::move(q)), get_sort());
}
Results::UnsupportedColumnTypeException::UnsupportedColumnTypeException(size_t column, const Table* table) {