[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 11:21:19 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG80b476a902a8: [lldb] Replace deprecated CFPropertyListWriteToStream (NFC) (authored by kastiglione).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147249/new/

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.509746.patch
Type: text/x-patch
Size: 704 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230330/fc307202/attachment.bin>


More information about the lldb-commits mailing list