make method static

This commit is contained in:
Ari Lazier 2016-05-16 12:45:29 -07:00
parent 2f69728827
commit 4d40896e5e
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -13,6 +13,7 @@
*.zip *.zip
*.realm *.realm
*.realm.lock *.realm.lock
*.management/
# core # core
core core

View File

@ -254,7 +254,7 @@ inline typename T::Function Realm<T>::create_constructor(ContextType ctx) {
return realm_constructor; return realm_constructor;
} }
void convert_outdated_datetime_columns(SharedRealm realm) { static void convert_outdated_datetime_columns(SharedRealm realm) {
if (realm->config().upgrade_initial_version != realm->config().upgrade_final_version && if (realm->config().upgrade_initial_version != realm->config().upgrade_final_version &&
realm->config().upgrade_initial_version < 5) { realm->config().upgrade_initial_version < 5) {
// any versions earlier than file format 5 are stored as milliseconds and need to be converted to the new format // any versions earlier than file format 5 are stored as milliseconds and need to be converted to the new format