mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-03 02:05:21 +00:00
remove unnecessary const cast
This commit is contained in:
parent
d964c77d2d
commit
4c7d6d8b2f
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user