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

refactor(UBPersistenceManager): Make createDocumentProxyStructure static #1047

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Vekhir
Copy link
Contributor

@Vekhir Vekhir commented Aug 14, 2024

The method createDocumentProxyStructure doesn't depend on the object, so can be made static. QtConcurrent::mapped requires the argument of the method to be const, since it creates a new list for the mapping.

The lambda function marks its arguments as const by default. Since the method is now static, the lambda can be replaced with a direct reference.

The removal of the lambda resolves warning 3 of #1046.

The method `createDocumentProxyStructure` doesn't depend on the object,
so can be made static. QtConcurrent::mapped requires the argument of
the method to be const, since it creates a new list for the mapping.

The lambda function marks its arguments as const by default. Since
the method is now static, the lambda can be replaced with a direct
reference.
@Vekhir Vekhir changed the title Make createDocumentProxyStructure static refactor(UBPersistenceManager): Make createDocumentProxyStructure static Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant