vcl/ios/DataFlavorMapping.cxx    |    2 +-
 vcl/source/treelist/transfer.cxx |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit e84dcee44aa7cdd340ee22d528afe14abebba994
Author:     Tor Lillqvist <[email protected]>
AuthorDate: Thu Dec 16 19:24:20 2021 +0200
Commit:     Tor Lillqvist <[email protected]>
CommitDate: Thu Dec 16 21:30:15 2021 +0100

    Fix iOS compilation after recent changes to Sequence
    
    Change-Id: I73c519174029766a3a2f61f9ad93fd63589b8184
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126957
    Tested-by: Jenkins
    Reviewed-by: Tor Lillqvist <[email protected]>

diff --git a/vcl/ios/DataFlavorMapping.cxx b/vcl/ios/DataFlavorMapping.cxx
index 6a3815cf7eb3..05abf2b8a6f9 100644
--- a/vcl/ios/DataFlavorMapping.cxx
+++ b/vcl/ios/DataFlavorMapping.cxx
@@ -559,7 +559,7 @@ DataFlavorMapper::typesArrayToFlavorSequence(NSArray* 
types) const
         if (isValidFlavor(oOOFlavor))
         {
             flavors.realloc(flavors.getLength() + 1);
-            flavors[flavors.getLength() - 1] = oOOFlavor;
+            flavors.getArray()[flavors.getLength() - 1] = oOOFlavor;
             SAL_INFO("vcl.ios.clipboard",
                      "Mapped " << [sysFormat UTF8String] << " to " << 
oOOFlavor.MimeType);
         }
diff --git a/vcl/source/treelist/transfer.cxx b/vcl/source/treelist/transfer.cxx
index 260e3ba65613..23a865a0a3f0 100644
--- a/vcl/source/treelist/transfer.cxx
+++ b/vcl/source/treelist/transfer.cxx
@@ -668,7 +668,7 @@ bool TransferableHelper::SetBitmapEx( const BitmapEx& 
rBitmapEx, const DataFlavo
 #ifdef IOS
             // Use faster compression on slow devices
             aFilterData.realloc(aFilterData.getLength() + 1);
-            aFilterData[aFilterData.getLength() - 1].Name = "Compression";
+            aFilterData.getArray()[aFilterData.getLength() - 1].Name = 
"Compression";
 
             // We "know" that this gets passed to zlib's deflateInit2_(). 1 
means best speed. For a
             // typical 15 megapixel image from a DSLR, we are talking about a 
difference of 17 s for
@@ -677,7 +677,7 @@ bool TransferableHelper::SetBitmapEx( const BitmapEx& 
rBitmapEx, const DataFlavo
             // Sure, the best would be to not have to re-encode the image at 
all, but have access to
             // the original JPEG or PNG when there is a such.
 
-            aFilterData[aFilterData.getLength() - 1].Value <<= 1;
+            aFilterData.getArray()[aFilterData.getLength() - 1].Value <<= 1;
 #endif
             vcl::PNGWriter aPNGWriter(rBitmapEx, &aFilterData);
 

Reply via email to