more pr feedback

This commit is contained in:
Ari Lazier 2016-05-27 16:03:03 -07:00
parent e316b54eff
commit 3e74cd98d5
4 changed files with 5 additions and 5 deletions

View File

@ -463,10 +463,10 @@ void Realm::close()
m_coordinator = nullptr;
}
int Realm::file_format_upgraded_from_version() const
util::Optional<int> Realm::file_format_upgraded_from_version() const
{
if (upgrade_initial_version != upgrade_final_version) {
return upgrade_initial_version;
}
return 0;
return util::Optional<int>();
}

View File

@ -133,7 +133,7 @@ namespace realm {
void close();
// returns the file format version upgraded from, or 0 if not upgraded
int file_format_upgraded_from_version() const;
util::Optional<int> file_format_upgraded_from_version() const;
~Realm();