[Lldb-commits] [PATCH] D147249: [lldb] Replace deprecated CFPropertyListWriteToStream (NFC)
Dave Lee via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 30 10:52:46 PDT 2023
kastiglione created this revision.
kastiglione added a reviewer: JDevlieghere.
Herald added a project: All.
kastiglione requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
Replace `CFPropertyListWriteToStream` with its recommended replacement, `CFPropertyListWrite`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D147249
Files:
lldb/source/Host/macosx/cfcpp/CFCData.cpp
Index: lldb/source/Host/macosx/cfcpp/CFCData.cpp
===================================================================
--- lldb/source/Host/macosx/cfcpp/CFCData.cpp
+++ lldb/source/Host/macosx/cfcpp/CFCData.cpp
@@ -47,8 +47,7 @@
CFCReleaser<CFWriteStreamRef> stream(
::CFWriteStreamCreateWithAllocatedBuffers(alloc, alloc));
::CFWriteStreamOpen(stream.get());
- CFIndex len =
- ::CFPropertyListWriteToStream(plist, stream.get(), format, NULL);
+ CFIndex len = ::CFPropertyListWrite(plist, stream.get(), format, 0, nullptr);
if (len > 0)
reset((CFDataRef)::CFWriteStreamCopyProperty(stream.get(),
kCFStreamPropertyDataWritten));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147249.509729.patch
Type: text/x-patch
Size: 704 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230330/98c8ff43/attachment.bin>
More information about the lldb-commits
mailing list