From ebfca16d003a9cd029fa733413652cf7944e59c0 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 30 Nov 2015 10:42:09 -0800 Subject: [PATCH] Eliminate a config copy when opening Realms --- src/shared_realm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)