remove unnecessary const cast

This commit is contained in:
Ari Lazier 2016-01-04 16:27:37 -08:00
parent 1e36beb263
commit 7964aff431
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ SharedRealm Realm::get_shared_realm(Config config)
throw UnitializedRealmException("Can't open an un-initialized Realm without a Schema");
}
target_schema->validate();
ObjectStore::verify_schema(*realm->m_config.schema, const_cast<Schema &>(*target_schema), true);
ObjectStore::verify_schema(*realm->m_config.schema, *target_schema, true);
realm->m_config.schema = std::move(target_schema);
}
else {