fix for copy assignment
This commit is contained in:
parent
143564d0b9
commit
480f4effb2
|
@ -41,9 +41,11 @@ Results::Results(SharedRealm r, const ObjectSchema &o, Table& table)
|
|||
Results& Results::operator=(Results const& r)
|
||||
{
|
||||
m_realm = r.m_realm;
|
||||
const_cast<ObjectSchema &>(object_schema) = r.object_schema;
|
||||
m_query = r.get_query();
|
||||
m_table = r.m_table;
|
||||
m_sort = r.get_sort();
|
||||
m_mode = Mode::Query;
|
||||
const_cast<ObjectSchema &>(object_schema) = r.object_schema;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue