summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qtextstream/resources/big_endian/operator_shift_QByteArray_resource_UnicodeNetworkOrder_1.data
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2024-05-14 16:16:08 +0200
committerMarc Mutz <marc.mutz@qt.io>2024-05-15 19:23:16 +0000
commit785a5e6eb4745dc3219cc33dc5ea2e671a40b5f3 (patch)
tree06699574d3f50f16bca5e0cef4c7e27c9779121a /tests/auto/corelib/io/qtextstream/resources/big_endian/operator_shift_QByteArray_resource_UnicodeNetworkOrder_1.data
parent4431ffa8b90f4d089f98544e8c2eeac6cfc7abb2 (diff)
moc: port to RAII handling of fopen()ed FILE*sHEADdev
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 'tests/auto/corelib/io/qtextstream/resources/big_endian/operator_shift_QByteArray_resource_UnicodeNetworkOrder_1.data')
0 files changed, 0 insertions, 0 deletions