Closed lidaobing closed 4 months ago
This pull request removes the use of bitwise flags and replaces them with individual boolean member variables. This change simplifies the code by eliminating the need for bitwise operations and makes the code more readable and maintainable.
Files | Changes |
---|---|
src/iptux-core/ProgramData.cpp src/iptux-core/Models.cpp src/api/iptux-core/ProgramData.h src/api/iptux-core/Models.h |
Replaced the use of bitwise flags with individual boolean member variables and updated methods accordingly. |
src/iptux-utils/utils.cpp src/iptux-utils/UtilsTest.cpp src/iptux-utils/utils.h |
Removed FLAG_SET, FLAG_CLR functions, and related tests. |
src/iptux/DataSettings.cpp src/iptux-core/internal/UdpDataServiceTest.cpp src/iptux/MainWindow.cpp |
Updated method calls and tests to use the new boolean member variables instead of bitwise operations. |
Attention: Patch coverage is 95.94595%
with 3 lines
in your changes missing coverage. Please review.
Project coverage is 51.90%. Comparing base (
047e579
) to head (2ef6246
).
Files | Patch % | Lines |
---|---|---|
src/api/iptux-core/ProgramData.h | 91.66% | 1 Missing :warning: |
src/iptux-core/Models.cpp | 94.11% | 1 Missing :warning: |
src/iptux/MainWindow.cpp | 0.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary by Sourcery
This pull request refactors the code by removing bitwise flag operations and replacing them with individual boolean member variables. This change improves code readability and maintainability. Corresponding tests have been updated to reflect these changes.