summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-12 13:54:15 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-15 17:04:44 +0100
commit3eb23bd401ac133ac279b0f901d2ea656d051539 (patch)
treec605dd269224cddec5695a3fc3a5ef44c6438f93 /fpicker
parent0b95a5f9d50db5ac6c09ce5dbfb49b76e292b96f (diff)
NSArray index type is NSUInteger, not long
Change-Id: I2c632a873a4fff66c3c440561add9abb7abc45ff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105740 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/aqua/SalAquaFilePicker.mm4
-rw-r--r--fpicker/source/aqua/SalAquaFolderPicker.mm2
2 files changed, 3 insertions, 3 deletions
diff --git a/fpicker/source/aqua/SalAquaFilePicker.mm b/fpicker/source/aqua/SalAquaFilePicker.mm
index b8db6d94b663..deff8783bbe9 100644
--- a/fpicker/source/aqua/SalAquaFilePicker.mm
+++ b/fpicker/source/aqua/SalAquaFilePicker.mm
@@ -253,12 +253,12 @@ uno::Sequence<OUString> SAL_CALL SalAquaFilePicker::getSelectedFiles()
files = [NSArray arrayWithObjects:[m_pDialog URL], nil];
}
- long nFiles = [files count];
+ NSUInteger nFiles = [files count];
SAL_INFO("fpicker.aqua", "# of items: " << nFiles);
uno::Sequence< OUString > aSelectedFiles(nFiles);
- for(long nIndex = 0; nIndex < nFiles; nIndex += 1)
+ for(NSUInteger nIndex = 0; nIndex < nFiles; nIndex += 1)
{
NSURL *url = [files objectAtIndex:nIndex];
diff --git a/fpicker/source/aqua/SalAquaFolderPicker.mm b/fpicker/source/aqua/SalAquaFolderPicker.mm
index e86110f22203..fa1285b053e9 100644
--- a/fpicker/source/aqua/SalAquaFolderPicker.mm
+++ b/fpicker/source/aqua/SalAquaFolderPicker.mm
@@ -114,7 +114,7 @@ OUString SAL_CALL SalAquaFolderPicker::getDirectory()
files = [static_cast<NSOpenPanel*>(m_pDialog) URLs];
}
- long nFiles = [files count];
+ NSUInteger nFiles = [files count];
SAL_INFO("fpicker.aqua", "# of items: " << nFiles);
if (nFiles < 1) {