fix for copy assignment

This commit is contained in:
Ari Lazier 2015-12-17 18:40:26 -08:00
parent 143564d0b9
commit 480f4effb2
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}