diff options
author | Marc Mutz <marc.mutz@qt.io> | 2024-05-14 16:16:08 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2024-05-15 19:23:16 +0000 |
commit | 785a5e6eb4745dc3219cc33dc5ea2e671a40b5f3 (patch) | |
tree | 06699574d3f50f16bca5e0cef4c7e27c9779121a /src/widgets/itemviews/qcolumnview.cpp | |
parent | 4431ffa8b90f4d089f98544e8c2eeac6cfc7abb2 (diff) |
Similar to what we did for androiddeployqt, port moc's output file
handling from raw FILE* to unique_ptr<FILE> with an fclose() "deleter".
Introduce a openFileForWrite() helper function to abstract away the
difference between Unixoid and Windows FILE handling.
Keep the actual type of the unique_ptr instantiation local to
openFileForWrite() function so that creation and destruction are
defined close together, notwithstanding the occasional need to spell
out the type of the return value in callers.
NB: The moc copy in qtscxml does not contain this code.
Pick-to: 6.7 6.5
Change-Id: I0c9bca0bf3e29c137c02cc563098c5f2e2708cf3
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/widgets/itemviews/qcolumnview.cpp')
0 files changed, 0 insertions, 0 deletions