From bd0418577210d7e7f66c5c707ddae1876357bfd7 Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Mon, 16 May 2016 12:50:29 -0700 Subject: [PATCH] use const ref for argument --- src/js_realm.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js_realm.hpp b/src/js_realm.hpp index 515b5af8..106036da 100644 --- a/src/js_realm.hpp +++ b/src/js_realm.hpp @@ -254,7 +254,7 @@ inline typename T::Function Realm::create_constructor(ContextType ctx) { return realm_constructor; } -static void convert_outdated_datetime_columns(SharedRealm realm) { +static void convert_outdated_datetime_columns(const SharedRealm &realm) { if (realm->config().upgrade_initial_version != realm->config().upgrade_final_version && 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