Use List::snapshot()

This commit is contained in:
Thomas Goyne 2016-07-18 14:41:21 -07:00
parent b59af706ea
commit a4c8d745cf
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ void ListClass<T>::snapshot(ContextType ctx, ObjectType this_object, size_t argc
validate_argument_count(argc, 0); validate_argument_count(argc, 0);
auto list = get_internal<T, ListClass<T>>(this_object); auto list = get_internal<T, ListClass<T>>(this_object);
return_value.set(ResultsClass<T>::create_instance(ctx, realm::Results(list->get_realm(), list->get_query()).snapshot())); return_value.set(ResultsClass<T>::create_instance(ctx, list->snapshot()));
} }
template<typename T> template<typename T>