Skip to content

refactor(UBPersistenceManager): Make createDocumentProxyStructure static#1047

Merged
kaamui merged 1 commit intoOpenBoard-org:devfrom
Vekhir:make-createDocumentProxyStructure-static
Jul 11, 2025
Merged

refactor(UBPersistenceManager): Make createDocumentProxyStructure static#1047
kaamui merged 1 commit intoOpenBoard-org:devfrom
Vekhir:make-createDocumentProxyStructure-static

Conversation

@Vekhir
Copy link
Copy Markdown
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.

@Vekhir Vekhir changed the title Make createDocumentProxyStructure static refactor(UBPersistenceManager): Make createDocumentProxyStructure static Aug 14, 2024
@Vekhir Vekhir force-pushed the make-createDocumentProxyStructure-static branch from eefda04 to 72225b7 Compare February 12, 2025 15:27
@Vekhir Vekhir force-pushed the make-createDocumentProxyStructure-static branch from 72225b7 to 9c7d1f5 Compare March 27, 2025 00:11
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 force-pushed the make-createDocumentProxyStructure-static branch from 9c7d1f5 to 7f7e955 Compare July 11, 2025 14:49
@kaamui kaamui merged commit c0c3e74 into OpenBoard-org:dev Jul 11, 2025
@Vekhir
Copy link
Copy Markdown
Contributor Author

Vekhir commented Jul 11, 2025

Thanks

@Vekhir Vekhir deleted the make-createDocumentProxyStructure-static branch July 11, 2025 18:55
@kaamui
Copy link
Copy Markdown
Member

kaamui commented Jul 18, 2025

Thank you @Vekhir

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.

2 participants