Skip to content

pushClipArea: drop asserts handled by isEmpty(); fix cppcheck findings - #72

Merged
jakoch merged 2 commits into
mainfrom
pushclip-assert
Oct 16, 2026
Merged

jakoch merged 2 commits into
mainfrom
pushclip-assert

Conversation

@jakoch

@jakoch jakoch commented Oct 16, 2026 •

Copy link
Copy Markdown
Member
  • Graphics::pushClipArea() no longer asserts on a negative width/height. Rectangle::isEmpty() already reports true for width/height <= 0, so asserting first defeated the existing empty-area handling below it.
  • Silences two pre-existing cppcheck findings

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 42.18%. Comparing base (2f7bce4) to head (6496921).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #72   +/-   ##
=======================================
  Coverage   42.17%   42.18%           
=======================================
  Files         121      121           
  Lines        8500     8498    -2     
  Branches     1811     1809    -2     
=======================================
  Hits         3585     3585           
  Misses       4485     4485           
+ Partials      430      428    -2     
Flag Coverage Δ
clang22-x64-linux-dbg-cov 42.18% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jakoch
jakoch merged commit 25728bf into main Oct 16, 2026
34 checks passed
@jakoch
jakoch deleted the pushclip-assert branch October 16, 2026 20:46
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