From b4f856bdd0582acdf7afff70d9e8f642fda8b6d7 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 24 Aug 2015 13:12:49 -0700 Subject: [PATCH] Use NSDMIs for Realm::Config and make it moveable --- shared_realm.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/shared_realm.hpp b/shared_realm.hpp index d3c19263..5344f1ef 100644 --- a/shared_realm.hpp +++ b/shared_realm.hpp @@ -43,16 +43,17 @@ namespace realm { struct Config { std::string path; - bool read_only; - bool in_memory; + bool read_only = false; + bool in_memory = false; std::unique_ptr encryption_key; std::unique_ptr schema; - uint64_t schema_version; + uint64_t schema_version = ObjectStore::NotVersioned; MigrationFunction migration_function; - Config() : read_only(false), in_memory(false), schema_version(ObjectStore::NotVersioned) {}; + Config() = default; + Config(Config&&) = default; Config(const Config& c); };