Skip to content

Use usize in QAnyStringView layout instead of c_void#1400

Open
jnbooth wants to merge 1 commit intoKDAB:mainfrom
jnbooth:qanystringview-layout
Open

Use usize in QAnyStringView layout instead of c_void#1400
jnbooth wants to merge 1 commit intoKDAB:mainfrom
jnbooth:qanystringview-layout

Conversation

@jnbooth
Copy link
Contributor

@jnbooth jnbooth commented Jan 28, 2026

QAnyStringView contains a const void pointer, but the correct representation for the size of a const void pointer is MaybeUninit<usize>, not MaybeUninit<[c_void; 1]>. The size of c_void is an implementation detail from the cxx library, and should not be used for layout calculations. c_void is an opaque extern, which means it's only ever passed around by reference, so its size does not need to be defined.

@codecov
Copy link

codecov bot commented Jan 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (55106f0) to head (f484a7f).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1400   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           75        75           
  Lines        13124     13124           
=========================================
  Hits         13124     13124           

☔ View full report in Codecov by Sentry.
📢 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.

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.

1 participant