[Lldb-commits] [lldb] 80b476a - [lldb] Replace deprecated CFPropertyListWriteToStream (NFC)

Dave Lee via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 30 11:21:15 PDT 2023


Author: Dave Lee
Date: 2023-03-30T11:21:09-07:00
New Revision: 80b476a902a8e2ab662b2e2a38e2afc55ce85c37

URL: https://github.com/llvm/llvm-project/commit/80b476a902a8e2ab662b2e2a38e2afc55ce85c37
DIFF: https://github.com/llvm/llvm-project/commit/80b476a902a8e2ab662b2e2a38e2afc55ce85c37.diff

LOG: [lldb] Replace deprecated CFPropertyListWriteToStream (NFC)

Replace `CFPropertyListWriteToStream` with its recommended replacement, `CFPropertyListWrite`.

Differential Revision: https://reviews.llvm.org/D147249

Added: 
    

Modified: 
    lldb/source/Host/macosx/cfcpp/CFCData.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Host/macosx/cfcpp/CFCData.cpp b/lldb/source/Host/macosx/cfcpp/CFCData.cpp
index ed79e36c8dfb8..6261a3a8b07ed 100644
--- a/lldb/source/Host/macosx/cfcpp/CFCData.cpp
+++ b/lldb/source/Host/macosx/cfcpp/CFCData.cpp
@@ -47,8 +47,7 @@ CFDataRef CFCData::Serialize(CFPropertyListRef plist,
   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));


        


More information about the lldb-commits mailing list