Eliminate a config copy when opening Realms

This commit is contained in:
Thomas Goyne 2015-11-30 10:42:09 -08:00
parent e30e2ff278
commit ebfca16d00
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ Group *Realm::read_group()
SharedRealm Realm::get_shared_realm(Config config) SharedRealm Realm::get_shared_realm(Config config)
{ {
return RealmCoordinator::get_coordinator(config.path)->get_realm(config); return RealmCoordinator::get_coordinator(config.path)->get_realm(std::move(config));
} }
void Realm::update_schema(std::unique_ptr<Schema> schema, uint64_t version) void Realm::update_schema(std::unique_ptr<Schema> schema, uint64_t version)