Skip to content

chore: Replace deprecated Qt macros and Improve const correctness - #309

Merged
mrbean-bremen merged 2 commits into
MeVisLab:masterfrom
jcfr:replace-deprecated-macros-and-improve-const-correctness
Sep 26, 2025
Merged

chore: Replace deprecated Qt macros and Improve const correctness#309
mrbean-bremen merged 2 commits into
MeVisLab:masterfrom
jcfr:replace-deprecated-macros-and-improve-const-correctness

Conversation

@jcfr

@jcfrjcfr commented Sep 25, 2025

Copy link
Copy Markdown
Contributor

This pull request includes two main changes:

  1. Replaces deprecated foreach and Q_FOREACH macros with C++11 range-based for loops as recommended by Qt 5.7+.
  2. Improves const correctness by using const references in range-based for loops and other relevant places.

Comment threadgenerator/parser/binder.cpp
Comment threadgenerator/parser/binder.cpp
Comment threadgenerator/abstractmetalang.cpp Outdated
@jcfr
jcfrforce-pushed the replace-deprecated-macros-and-improve-const-correctness branch from c4779e1 to 111c4ebCompareSeptember 26, 2025 05:39
hjmjohnsonand others added 2 commits September 26, 2025 01:44
As of Qt 5.7, `foreach` and `Q_FOREACH` macros are deprecated, and
C++11 range-based for loops are preferred.
Co-authored-by: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
This change improves const correctness by using `const` references
in range-based for loops and other relevant places.
@jcfr
jcfrforce-pushed the replace-deprecated-macros-and-improve-const-correctness branch from 111c4eb to 5e2be3fCompareSeptember 26, 2025 05:44
Comment threadgenerator/parser/binder.cpp
@mrbean-bremen
mrbean-bremen merged commit 20abb24 into MeVisLab:masterSep 26, 2025
17 checks passed
@jcfr
jcfr deleted the replace-deprecated-macros-and-improve-const-correctness branch September 26, 2025 19:47
Sign up for freeto 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.

4 participants

@jcfr@hjmjohnson@mrbean-bremen@usiems