Update object store to fix the build with GCC 4.9
This commit is contained in:
parent
a4c71db20c
commit
4eca12968e
|
@ -423,10 +423,9 @@ void SessionClass<T>::simulate_error(ContextType ctx, FunctionType, ObjectType t
|
|||
validate_argument_count(argc, 2);
|
||||
|
||||
if (auto session = get_internal<T, SessionClass<T>>(this_object)->lock()) {
|
||||
SyncError error;
|
||||
error.error_code = std::error_code(Value::validated_to_number(ctx, arguments[0]), realm::sync::protocol_error_category());
|
||||
error.message = Value::validated_to_string(ctx, arguments[1]);
|
||||
SyncSession::OnlyForTesting::handle_error(*session, std::move(error));
|
||||
std::error_code error_code(Value::validated_to_number(ctx, arguments[0]), realm::sync::protocol_error_category());
|
||||
std::string message = Value::validated_to_string(ctx, arguments[1]);
|
||||
SyncSession::OnlyForTesting::handle_error(*session, SyncError(error_code, message, false));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 156953025310da358f409232b354f496b3004743
|
||||
Subproject commit 3eb19c014fdfa0f02a03d4acf71d046d29a6dfa6
|
Loading…
Reference in New Issue