diff --git a/src/shared_realm.cpp b/src/shared_realm.cpp index bff52bce..ae73a9a8 100644 --- a/src/shared_realm.cpp +++ b/src/shared_realm.cpp @@ -43,15 +43,13 @@ Realm::Config::Config(const Config& c) , cache(c.cache) , disable_format_upgrade(c.disable_format_upgrade) , automatic_change_notifications(c.automatic_change_notifications) -, upgrade_final_version(0) -, upgrade_initial_version(0) { if (c.schema) { schema = std::make_unique(*c.schema); } } -Realm::Config::Config() : schema_version(ObjectStore::NotVersioned), upgrade_initial_version(0), upgrade_final_version(0) { } +Realm::Config::Config() : schema_version(ObjectStore::NotVersioned) { } Realm::Config::Config(Config&&) = default; Realm::Config::~Config() = default; diff --git a/src/shared_realm.hpp b/src/shared_realm.hpp index 20cb630c..75b67694 100644 --- a/src/shared_realm.hpp +++ b/src/shared_realm.hpp @@ -82,9 +82,9 @@ namespace realm { // everything can be done deterministically on one thread, and // speeds up tests that don't need notifications. bool automatic_change_notifications = true; - // File format versions populated when a file format updrade takes place + // File format versions populated when a file format upgrade takes place // during realm opening - int upgrade_initial_version, upgrade_final_version; + int upgrade_initial_version = 0, upgrade_final_version = 0; Config(); Config(Config&&);