diff --git a/src/shared_realm.cpp b/src/shared_realm.cpp index 85fc8214..45960d8b 100644 --- a/src/shared_realm.cpp +++ b/src/shared_realm.cpp @@ -169,7 +169,7 @@ Group *Realm::read_group() 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, uint64_t version)