pr feedback

This commit is contained in:
Ari Lazier 2016-05-27 15:50:33 -07:00
parent 9012549c5d
commit 9fe636b614
5 changed files with 6 additions and 7 deletions

View File

@ -501,10 +501,9 @@ void do_add_null_comparison_to_query(Query &query, const Schema &schema, const O
do_add_null_comparison_to_query<Link>(query, cmp.op, expr, args);
break;
case realm::PropertyType::Array:
throw std::runtime_error((std::string)"Comparing Lists to 'null' is not supported");
break;
throw std::runtime_error("Comparing Lists to 'null' is not supported");
default: {
throw std::runtime_error((std::string)"Object type " + string_for_property_type(type) + " not supported");
throw std::runtime_error(std::string("Object type ") + string_for_property_type(type) + " not supported");
}
}
}

View File

@ -68,7 +68,7 @@ Realm::Realm(Config config)
}
}
void Realm::open_with_config(Config& config,
void Realm::open_with_config(const Config& config,
std::unique_ptr<Replication>& history,
std::unique_ptr<SharedGroup>& shared_group,
std::unique_ptr<Group>& read_only_group,

View File

@ -158,7 +158,7 @@ namespace realm {
static _impl::RealmCoordinator& get_coordinator(Realm& realm) { return *realm.m_coordinator; }
};
static void open_with_config(Config& config,
static void open_with_config(const Config& config,
std::unique_ptr<Replication>& history,
std::unique_ptr<SharedGroup>& shared_group,
std::unique_ptr<Group>& read_only_group,