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

Check wxXRC_NO_RELOADING out of the loop #24536

Closed
wants to merge 4 commits into from

Conversation

joro75
Copy link
Contributor

@joro75 joro75 commented May 16, 2024

Small optimisation:
Instead of checking if the wxXRC_NO_RELOADING flag is set, inside the loop that checks each XmlResource record, this will check the flag before the loop itself is even started.

Small optimisation:
Instead of checking if the wxXRC_NO_RELOADING flag is set, inside the loop that checks each XmlResource record, this will check the flag before the loop itself is even started.
@joro75
Copy link
Contributor Author

joro75 commented May 16, 2024

Is there someone who can restart the failed check? For some reason something went wrong and the check timed-out. I do expect that restarting the check will let it pass (as the other checks did).

Thanks in advance!

@vadz
Copy link
Contributor

vadz commented May 17, 2024

Thanks, I'll apply this soon although I'd like to just return if this flag is used (but it's a trivial change and I can do it myself).

@joro75
Copy link
Contributor Author

joro75 commented May 18, 2024

@vadz I already updated the files for you, so it now directly returns from wxXmlResource::UpdateResources if wxXRC_NO_RELOADING is set.

@vadz
Copy link
Contributor

vadz commented May 19, 2024

Thanks for the update! Will (squash) merge soon.

@vadz vadz closed this in ef0e3f8 May 19, 2024
vadz pushed a commit to vadz/wxWidgets that referenced this pull request May 19, 2024
Check wxXRC_NO_RELOADING out of the loop to avoid looping over all XRC
files.

See wxWidgets#24536.

(cherry picked from commit ef0e3f8)
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.

None yet

2 participants