From 9723c9368a6cb6ed1ea5bd8aa48d8b22db83ea40 Mon Sep 17 00:00:00 2001 From: Patrick Luby Date: Sat, 6 Jul 2024 08:20:51 -0400 Subject: Move break inside conditional statement to match macOS code Commit 839346d3f20af0c6db1377486cbff3f2ff3e2387 for iOS was miscopied from commit e4cbe169bd1236698a573bf4758d8ae8519a1c08 so correct the copy error to bring the iOS code back in sync with the macOS code. Change-Id: I3bb8cc85465adf978e50fab1a802c3f062b7a728 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170067 Tested-by: Jenkins CollaboraOffice Reviewed-by: Patrick Luby Reviewed-by: Andras Timar --- vcl/ios/DataFlavorMapping.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vcl/ios/DataFlavorMapping.cxx') diff --git a/vcl/ios/DataFlavorMapping.cxx b/vcl/ios/DataFlavorMapping.cxx index ded47097015c..f2d039f2d6a9 100644 --- a/vcl/ios/DataFlavorMapping.cxx +++ b/vcl/ios/DataFlavorMapping.cxx @@ -403,11 +403,11 @@ NSString* DataFlavorMapper::openOfficeToSystemFlavor(const DataFlavor& oOOFlavor sysFlavor = flavorMap[i].SystemFlavor; else sysFlavor = OUStringToNSString(oOOFlavor.MimeType); - } - // Flavor set, then break - if (sysFlavor != nullptr) - break; + // Flavor set, then break + if (sysFlavor != nullptr) + break; + } } if (!sysFlavor) -- cgit