Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to latest Core #3016

Merged
merged 10 commits into from
Sep 1, 2022
Merged

Update to latest Core #3016

merged 10 commits into from
Sep 1, 2022

Conversation

nirinchev
Copy link
Member

Description

Core removed the exception from collection notifiers. It's also pulling in fix for realm/realm-core#4865 which allows us to remove some WaitForDownloads.

@cla-bot cla-bot bot added the cla: yes label Aug 30, 2022
{
NativeMethods.report_error_for_testing(this, errorCode, errorCategory, errorMessage, (IntPtr)errorMessage.Length, isFatal);
NativeMethods.report_error_for_testing(this, errorCode, errorCategory, errorMessage, (IntPtr)errorMessage.Length, isFatal, (int)action);

Check notice

Code scanning / CodeQL

Calls to unmanaged code

Replace this call with a call to managed code if possible.
return handle_errors(ex, [=]() {
auto context = new ManagedNotificationTokenContext();
context->managed_object = managed_dict;
context->token = dictionary->add_key_based_notification_callback([context](DictionaryChangeSet changes) {

Check notice

Code scanning / CodeQL

Large object passed by value

This parameter of type [DictionaryChangeSet](1) is 104 bytes - consider passing a const pointer/reference instead.
auto context = new ManagedNotificationTokenContext();
context->managed_object = managed_object;
context->schema = schema;
context->token = subscriber([context](CollectionChangeSet changes) {

Check notice

Code scanning / CodeQL

Large object passed by value

This parameter of type [CollectionChangeSet](1) is 192 bytes - consider passing a const pointer/reference instead.
@nirinchev nirinchev requested a review from fealebenpae August 31, 2022 14:54
@nirinchev nirinchev merged commit 4a8888a into main Sep 1, 2022
@nirinchev nirinchev deleted the ni/new-core branch September 1, 2022 12:17
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants