error handling cleanup

This commit is contained in:
Ari Lazier 2015-06-05 12:52:05 -07:00
parent 3453515601
commit b5372a40e9
2 changed files with 3 additions and 3 deletions

View File

@ -318,8 +318,8 @@ ObjectStore::Schema ObjectStore::schema_from_group(Group *group) {
return schema;
}
bool ObjectStore::are_indexes_up_to_date(Group *group, Schema &schema) {
for (auto& object_schema:schema) {
bool ObjectStore::indexes_are_up_to_date(Group *group, Schema &schema) {
for (auto &object_schema:schema) {
TableRef table = table_for_object_type(group, object_schema.name);
if (!table) {
continue;

View File

@ -57,7 +57,7 @@ namespace realm {
static Schema schema_from_group(Group *group);
// check if indexes are up to date - if false you need to call update_realm_with_schema
static bool are_indexes_up_to_date(Group *group, Schema &schema);
static bool indexes_are_up_to_date(Group *group, Schema &schema);
private:
// set a new schema version